dambel

دمبل

shevron
ورود | ثبت نام

API Docs / training / trainees / create



/api/v1/training/trainees

Create a new trainee record.

Trainers can create trainees, and users can create a trainer from their side.


Permissions

PermissionDescription
trainees.createCreate trainees/trainers for yourself
trainees.create_anyCreate trainees/trainers for any user

Request Body Parameters

NameTypeRequiredDescription
user_idintYesID of the trainee user account
training_service_idintYesID of the training service
notesstringNoOptional notes

Response

201 Created

<trainee resource>

Error Responses

StatusError TypeReference
400Bad RequestInsufficient account balance for training service payment.
422Validation ErrorValidation error
401UnauthorizedAuthentication error
403ForbiddenPermission error

Note: Payment is not required if creation is from the trainer side.


footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube