XISUITEDokumentation

User Groups

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

List user groups#

GET/groupsToken

Parameter

NameOrtTypBeschreibung
is_deletedQuerystring–
searchQuerystring–

Antworten

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

Create a user group#

POST/groupsToken

Request-Bodyapplication/jsonCreateUserGroupDto

NameTypBeschreibung
namePflichtstring

Group name

descriptionobject

Group description

colorstring

Hex color code (6-digit)

Beispiel: #6B7280

default_role_idobject

Default role ID for new members

organizationIdstring

Organization ID (sent by frontend, ignored — JWT is used)

Antworten

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

Get a user group by ID#

GET/groups/{id}Token

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring–
withMembersQuerystring–

Antworten

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

Update a user group#

PUT/groups/{id}Token

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring–

Request-Bodyapplication/jsonUpdateUserGroupDto

NameTypBeschreibung
namestring

Group name

descriptionobject

Group description

colorstring

Hex color code (6-digit)

Beispiel: #6B7280

default_role_idobject

Default role ID for new members

Antworten

  • 200OK
Beispiel (cURL)
curl -X PUT "https://xapi.ambertech.cloud/api/v1/groups/{id}" \
  -H "Authorization: Bearer $XISUITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"…","description":{},"color":"#6B7280"}'

Actions: restore | permanent_delete | duplicate#

PATCH/groups/{id}Token

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring–

Request-Bodyapplication/jsonPatchUserGroupDto

NameTypBeschreibung
actionPflichtstring

Werte: restorepermanent_deleteduplicate

newNamestring

New name (required for duplicate)

organizationIdstring

Organization ID (accepted from frontend, JWT org is always used)

copyMembersboolean

When duplicating, copy existing group members too.

Antworten

  • 200OK
Beispiel (cURL)
curl -X PATCH "https://xapi.ambertech.cloud/api/v1/groups/{id}" \
  -H "Authorization: Bearer $XISUITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"action":"restore"}'

Soft-delete a user group#

DELETE/groups/{id}Token

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring–

Antworten

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

List members of a group#

GET/groups/{id}/membersToken

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring–

Antworten

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

Add member(s) to a group#

POST/groups/{id}/membersToken

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring–

Request-Bodyapplication/jsonAddMembersDto

NameTypBeschreibung
user_idstring

Single user ID to add

user_idsstring[]

Multiple user IDs to add (bulk)

role_idobject

Role ID to assign to added member(s)

Antworten

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

Update role of a group member#

PATCH/groups/{id}/membersToken

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring–

Request-Bodyapplication/jsonUpdateMemberRoleDto

NameTypBeschreibung
user_idPflichtstring

User ID whose role to update

role_idobject

New role ID (null to remove role)

Antworten

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

Remove member(s) from a group#

DELETE/groups/{id}/membersToken

Parameter

NameOrtTypBeschreibung
idPflichtPfadstring–

Request-Bodyapplication/jsonRemoveMembersDto

NameTypBeschreibung
user_idstring

Single user ID to remove

user_idsstring[]

Multiple user IDs to remove (bulk)

Antworten

  • 200OK
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/groups/{id}/members" \
  -H "Authorization: Bearer $XISUITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"user_id":"…","user_ids":[]}'

Get group memberships for several users#

GET/groups/membershipsToken

Returns a map of user id to the groups that user belongs to, restricted to the caller's organization and excluding soft-deleted groups. Every requested id is present in the response; users with no groups map to an empty array.

Parameter

NameOrtTypBeschreibung
user_idsPflichtQuerystring[]

Comma-separated user ids

Antworten

  • 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/groups/memberships" \
  -H "Authorization: Bearer $XISUITE_TOKEN"
Stand: 25. Oktober 2026© 2026 XISUITE · AmberTech Solutions