/api/v1/training/trainees
Create a new trainee record.
Trainers can create trainees, and users can create a trainer from their side.
Permission | Description |
---|---|
trainees.create | Create trainees/trainers for yourself |
trainees.create_any | Create trainees/trainers for any user |
Name | Type | Required | Description |
---|---|---|---|
user_id | int | Yes | ID of the trainee user account |
training_service_id | int | Yes | ID of the training service |
notes | string | No | Optional notes |
<trainee resource>
Status | Error Type | Reference |
---|---|---|
400 | Bad Request | Insufficient account balance for training service payment. |
422 | Validation Error | Validation error |
401 | Unauthorized | Authentication error |
403 | Forbidden | Permission error |
Note: Payment is not required if creation is from the trainer side.