API documentation for HeyDonto Authentication and User Management
API documentation for HeyDonto Authentication and User Management
curl -i -X GET \
'https://docs.heydonto.com/_mock/apis/authentication/openapi/user?userRole=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
curl -i -X POST \
https://docs.heydonto.com/_mock/apis/authentication/openapi/user \
-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,
"role": "ADMIN",
"organizationId": 1,
"brandId": 1,
"siteId": 1
}'
curl -i -X PUT \
'https://docs.heydonto.com/_mock/apis/authentication/openapi/user/{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",
"id": 123
}'
curl -i -X DELETE \
'https://docs.heydonto.com/_mock/apis/authentication/openapi/user/{userId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'