dambel

دمبل

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

API Docs / training / services / update



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

Update a training service.


Permissions

PermissionDescription
training_services.updateUpdate your own training services
training_services.update_anyUpdate training services for any user

Request Body Parameters

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

All parameters are optional. If omitted, they will not be updated. You can set them to null if desired.


Response

200 OK

<training service resource>

Error Responses

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

footer wave
logo

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

LinkedinInstagramXYoutube