Reference / Organizations

Change a member's role.

PATCH /v1/organizations/{id}/members/{user_id}
Secret API key operationId: change_member_role

Authorization

Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.

Path parameters

  • id string<uuid> required

    Organization id

  • user_id string<uuid> required

    Member user id

Request body · required

  • role string required

Responses

200 Role changed
{
  "data": {
    "created_at": "2026-01-15T09:30:00Z",
    "email": "string",
    "role": "string",
    "user_id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
    "user_status": "string"
  },
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}
404 Not a member

Request

curl -X PATCH "http://localhost:8080/v1/organizations/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/members/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f" \
  -H "Content-Type: application/json" \
  -d '{
  "role": "string"
}'

Try it

live request
PATCH http://localhost:8080/v1/organizations/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/members/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f

Path parameters

Request body

application/json