https://docs.heydonto.com/_mock/apis/heydonto/openapi/
https://api-staging.heydonto.com/
https://api.heydonto.com/
https://docs.heydonto.com/_mock/apis/heydonto/openapi/users
https://api-staging.heydonto.com/users
https://api.heydonto.com/users
curl -i -X GET \
'https://docs.heydonto.com/_mock/apis/heydonto/openapi/users?clientAccountId=string&userRole=ADMIN' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
The role of the user
https://docs.heydonto.com/_mock/apis/heydonto/openapi/users
https://api-staging.heydonto.com/users
https://api.heydonto.com/users
curl -i -X POST \
https://docs.heydonto.com/_mock/apis/heydonto/openapi/users \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"password": "password123",
"isEnabled": true,
"organizationId": 1,
"brandId": 1,
"siteId": 1,
"role": "ADMIN",
"clientAccountId": [
1,
2,
3
]
}'
The role of the user
https://docs.heydonto.com/_mock/apis/heydonto/openapi/users/{userId}
https://api-staging.heydonto.com/users/{userId}
https://api.heydonto.com/users/{userId}
curl -i -X PUT \
'https://docs.heydonto.com/_mock/apis/heydonto/openapi/users/{userId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"isEnabled": true,
"role": "ADMIN",
"clientAccountId": [
1,
2,
3
]
}'
https://docs.heydonto.com/_mock/apis/heydonto/openapi/users/{userId}
https://api-staging.heydonto.com/users/{userId}
https://api.heydonto.com/users/{userId}
curl -i -X DELETE \
'https://docs.heydonto.com/_mock/apis/heydonto/openapi/users/{userId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'