XISUITEDokumentation

User Role Assignments

5 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1

List role assignments (filter by user_id or role_id)#

GET/user-role-assignmentsToken

Parameter

NameOrtTypBeschreibung
user_idQuerystring–
role_idQuerystring–

Antworten

  • 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/user-role-assignments" \
  -H "Authorization: Bearer $XISUITE_TOKEN"

Assign a role to a user#

POST/user-role-assignmentsToken

Request-Bodyapplication/jsonAssignRoleDto

NameTypBeschreibung
user_idPflichtstring

User ID to assign the role to

role_idPflichtstring

Role ID to assign

organizationIdstring

Organization ID (defaults to JWT org)

Antworten

  • 201Erstellt
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/user-role-assignments" \
  -H "Authorization: Bearer $XISUITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"user_id":"…","role_id":"…"}'

Unassign role(s) from a user (role_id optional — omit to remove all)#

DELETE/user-role-assignmentsToken

Request-Bodyapplication/jsonUnassignRoleDto

NameTypBeschreibung
user_idPflichtstring

User ID to remove role from

role_idstring

Role ID (if omitted, removes ALL roles from user)

Antworten

  • 200OK
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/user-role-assignments" \
  -H "Authorization: Bearer $XISUITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"user_id":"…"}'

Get a role assignment by ID#

GET/user-role-assignments/{id}Token

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring–

Antworten

  • 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/user-role-assignments/{id}" \
  -H "Authorization: Bearer $XISUITE_TOKEN"

Delete a role assignment by ID#

DELETE/user-role-assignments/{id}Token

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring–

Antworten

  • 200OK
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/user-role-assignments/{id}" \
  -H "Authorization: Bearer $XISUITE_TOKEN"
Stand: 25. Oktober 2026© 2026 XISUITE · AmberTech Solutions