dambel

دمبل

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

API Docs / training / services / create



/api/v1/training/services/{user-id}

Create a new training service for a user.


Permissions

PermissionDescription
training_services.createCreate training services for yourself
training_services.create_anyCreate training services for any user

Request Body Parameters

NameTypeRequiredDescription
titlestringYesTitle of the training service (max 255)
descriptionstringNoDescription (max 2000, optional)
priceintYesPrice of the training service
discountfloatNoDiscount percentage (nullable, default 0)

The user ID is specified in the route parameter.


Response

201 Created

<training service resource>

Error Responses

StatusError TypeReference
422Validation ErrorValidation error
401UnauthorizedAuthentication error
403ForbiddenPermission error

footer wave
logo

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

LinkedinInstagramXYoutube