Skip to main content
PATCH
/
users
/
{userID}
/
role
role
curl --request PATCH \
  --url 'http://{{baseurl}}/users/{userID}/role' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "Moderator"
}
'

Authorizations

Authorization
string
header
required

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

Headers

Content-Type
string

Path Parameters

userID
string
required

Body

application/json

The body is of type object.

Response

200 - application/json

Successful response