Skip to main content
PATCH
/
v1
/
organizations
/
{id}
/
members
/
{userId}
Update member role
curl --request PATCH \
  --url https://api.cnap.tech/v1/organizations/{id}/members/{userId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "owner"
}
'
{
  "error": {
    "code": "not_found",
    "message": "Resource not found",
    "param": "name",
    "suggestion": "Run `cnap clusters list` to see available clusters",
    "details": "<unknown>"
  }
}

Authorizations

Authorization
string
header
required

Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://cnap.tech/account/tokens

Path Parameters

id
string
required

Organization ID

userId
string
required

User ID

Body

application/json
role
enum<string>
required
Available options:
owner,
admin,
member

Response

Role updated