Team
View as Markdown

Change a member’s role

No API key can call this route. It needs a signed-in dashboard user with the right role; a key answers 403. About scopes

PATCH
/api/v1/team/members/{userId}

Authorization

Authorization
Required
Bearer <token>

An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).

In: header

Request Body

application/jsonOptional

role
Required
string

Value in: "owner" | "admin" | "developer" | "finance" | "viewer"

Path Parameters

userId
Required
string

Format: "uuid"
curl -X PATCH "https://globalymint.com/api/v1/team/members/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "role": "owner"
  }'

The updated member.

{
  "data": {
    "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "email": "user@example.com",
    "role": "owner",
    "isPrimary": true,
    "createdAt": "2019-08-24T14:15:22Z"
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}