Skip to content

Set an account roles

Request

Update an account roles using accountId.

Security
mms
Path
accountIdstringrequired
Bodyapplication/jsonrequired
trainerboolean

If trainer is true, assign trainer right for account, otherwise remove trainer rights.

gymOwnerboolean

If gymOwner is true, assign gymOwner right for account, otherwise remove gymOwner rights.

curl -i -X POST \
  'https://developer.egym.com/_mock/mms-api-v2/apis/mms-v2/api/v2/accounts/{accountId}/roles' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '{
    "trainer": true,
    "gymOwner": true
  }'

Responses

No Content

Response
No content