Skip to main content
PUT
/
organizations
/
{org_id}
/
members
/
{user_id}
/
role
Update a member's role
curl --request PUT \
  --url https://api.pcxpay.com/v1/organizations/{org_id}/members/{user_id}/role \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "<string>"
}
'
{
  "status": "success",
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

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

Path Parameters

org_id
string
required
user_id
string
required

Body

application/json
role
string
required

Response

Role updated

status
string
Example:

"success"

message
string
data
object