Skip to content

Update a team member role

PATCH
/team/members/{id}

Authorizations

BearerAuth

JWT token from login

Type
HTTP (bearer)
or
AccessToken

Personal access token. Value: Token <your-token>

Type
API Key (header: Authorization)

Parameters

Path Parameters

id*
Type
string
Required

Request Body

application/json
JSON
{
  
"role": "string"
}

Responses

OK

application/json
JSON
{
  
"member": {
  
  
"_id": "string",
  
  
"role": "string",
  
  
"joined_at": "string",
  
  
"user": {
  
  
  
"_id": "string",
  
  
  
"name": "string",
  
  
  
"email": "string",
  
  
  
"last_login": "string",
  
  
  
"createdAt": "string"
  
  
}
  
}
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI