Skip to main content
PATCH
/
sessions
/
{sessionId}
/
custom-roles
/
quit
Quit Custom Role
curl --request PATCH \
  --url https://api.series.hr/sessions/{sessionId}/custom-roles/quit \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "UserId": "<string>",
  "RoleName": "<string>"
}
'
Quit a custom role that the user currently holds. The slot will be made vacant again for other users to claim. The user must be a workspace member.
Custom roles are a Premium/Enterprise feature. This endpoint will return a 403 error for free-tier workspaces.

Request

curl -X PATCH https://api.series.hr/sessions/session_abc123/custom-roles/quit \
  -H "apikey: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "UserId": "714760171",
    "RoleName": "Trainer"
  }'

Parameters

sessionId
string
required
The session ID
UserId
string
required
The Roblox user ID of the user quitting the role (must be a workspace member)
RoleName
string
required
The name of the custom role to quit

Response

200
{
  "success": true,
  "data": {
    "message": "Successfully quit Trainer position",
    "SessionId": "session_abc123",
    "RoleName": "Trainer",
    "UserId": "714760171"
  }
}

Errors

StatusDescription
400User is not in this role, user is not a workspace member, or session is completed/cancelled
403Premium/Enterprise subscription required
404Session or custom role not found

Authorizations

apikey
string
header
required

Pass your API key in the apikey header. Alternatively, the x-api-key header is also accepted.

Path Parameters

sessionId
string
required

The session ID

Body

application/json
UserId
string
required

Roblox user ID of the user quitting the role

RoleName
string
required

Name of the custom role to quit

Response

Custom role quit successfully