Skip to main content
POST
/
v1
/
servers
/
{serverId}
/
members
/
{userId}
/
roles
Assign a role to a member
curl --request POST \
  --url https://api.magne.app/v1/servers/{serverId}/members/{userId}/roles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

serverId
string<uuid>
required
userId
string<uuid>
required

Body

application/json
roleId
string<uuid>
required

Response

Success