POST
/
sessions
/
{sessionId}
/
servers
/
{serverId}
/
roles
curl --request POST \
  --url https://api.readmin.app/sessions/{sessionId}/servers/{serverId}/roles \
  --header 'Content-Type: application/json' \
  --header 'loader-id: <api-key>' \
  --data '{
  "userId": "<string>",
  "roleId": "<string>",
  "subroleId": "<string>"
}'
{
  "success": true
}

Authorizations

loader-id
string
header
required

Path Parameters

sessionId
string
required
serverId
string
required

Body

application/json
userId
string
roleId
string
subroleId
string

Response

200 - application/json
Role successfully claimed for the session server
success
boolean