Skip to main content
DELETE
/
api
/
v1
/
mgt
/
workspaces
/
{workspaceId}
/
roles
/
{roleId}
Delete Role with Reassignment
curl --request DELETE \
  --url https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/roles/{roleId} \
  --header 'Content-Type: application/json' \
  --header 'x-client-key: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '
{
  "newRoleId": "a0bb13ef-7362-41b2-9947-a9146adb243d"
}
'
{
  "data": 1,
  "meta": {}
}

Authorizations

x-client-key
string
header
required

Client API key for authentication

x-client-secret
string
header
required

Client secret for authentication

Path Parameters

workspaceId
string<uuid>
required

Workspace ID

roleId
string<uuid>
required

ID of the role to delete

Body

application/json
newRoleId
string<uuid>
required

Role ID to which existing users will be reassigned

Response

Role deleted and users reassigned

data
integer

Number of affected records

meta
object