Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Add user to organisation

Adds a user to an organisation with default level. Only admins can perform this action.

POST/api/v1/{app_id}/organisations/{id}/users
Authorization
AuthorizationAPI key · headerrequired

Bearer token (format: "Bearer {token}")

Path parameters
app_idstringrequired

UUID of the app

idstringrequired

UUID of the organisation

Request body
requiredapplication/json

User ID to add

levelstringrequired
Allowed:admindefault
rolestringrequired
user_idstringrequired
Responses
200

OK

messagestring
400

Invalid request

detailsstring[] | null
messagestring
successboolean
403

Forbidden

detailsstring[] | null
messagestring
successboolean
404

Not Found

detailsstring[] | null
messagestring
successboolean
500

Internal server error

detailsstring[] | null
messagestring
successboolean
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST '//customers.enad.io/api/v1/string/organisations/string/users' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "level": "admin",
  "role": "string",
  "user_id": "string"
}'
Response
{
  "message": "string"
}