Reference / Dashboard

change a member's role (ownership transfer is promoting another member to `owner`). Owner-managed; the last owner cannot be demoted.

PATCH /v1/dashboard/team/{member_id}
End-user session operationId: change_member_role

Authorization

Called from the browser with the publishable application id (x-application-id); the access token lives in memory.

Path parameters

  • member_id string<uuid> required

    Member id

Request body · required

  • role string required

Responses

200 Role changed
{
  "data": [
    {
      "account_id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
      "created_at": "2026-01-15T09:30:00Z",
      "email": "string",
      "id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
      "last_active_at": "2026-01-15T09:30:00Z",
      "name": "string",
      "role": "string"
    }
  ],
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}
403 Insufficient role
422 Cannot demote the last owner

Request

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

Try it

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

Path parameters

Request body

application/json