Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Add user to organization

Associates an existing user with an organization, assigning them a custom role and access level (default/admin/super-admin).

PUT/api/v1/{team_slug}/{app_slug}/organisations/{org_id}/user
Authorization
AuthorizationBearer token · headerrequired

Management API token, sent as Authorization: Bearer <token>.

Path parameters
app_slugstringrequired

App slug

team_slugstringrequired

Team slug

org_idstringrequired

Organization ID

Request body
requiredapplication/json

User details

custom_role_idstringrequired
levelstringrequired
Allowed:defaultadminsuper-admin
user_idstringrequired
Responses
200

User added to organization successfully

datastringrequired
detailsstring[]

Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes

successbooleanrequired
400

Invalid request (e.g. bad payload, validation error)

detailsstring[]
messagestring
successbooleanrequired
401

Unauthorized access

detailsstring[]
messagestring
successbooleanrequired
404

Organization or user or custom role not found

detailsstring[]
messagestring
successbooleanrequired
500

Internal server error

detailsstring[]
messagestring
successbooleanrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT 'https://api.enad.io/api/v1/string/string/organisations/string/user' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "custom_role_id": "string",
  "level": "default",
  "user_id": "string"
}'
Response
{
  "data": "string",
  "details": [
    "string"
  ],
  "success": true
}