PATCH
/
v1
/
members
/
{userID}
Update a member's role
curl --request PATCH \
  --url https://api.wazapin.com/v1/members/{userID} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "<string>"
}
'
{
  "code": "<string>",
  "error": "<string>",
  "details": [
    {
      "location": "<string>",
      "message": "<string>",
      "value": "<unknown>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Session token or API key

Path Parameters

userID
string
required

Target user ID

Body

application/json
role
string
required

New role

Minimum string length: 1

Response

No Content