Skip to content

Retrieve an account roles

Request

Retrieve an account roles in the current gym for given accountId

Security
mms
Path
accountIdstringrequired
curl -i -X GET \
  'https://developer.egym.com/_mock/mms-api-v2/apis/mms-v2/api/v2/accounts/{accountId}/roles' \
  -H 'x-api-key: YOUR_API_KEY_HERE'

Responses

Ok

Bodyapplication/json
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.

Response
{ "trainer": true, "gymOwner": true }