PATCH
/
v3
/
workspaces
/
{workspaceId}
/
members
/
{userId}
Update Workspace Member
curl --request PATCH \
  --url http://127.0.0.1:3333/v3/workspaces/{workspaceId}/members/{userId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "ADMIN"
}
'
{
  "member": {
    "userId": "<string>",
    "workspaceId": "<string>",
    "role": "ADMIN",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "email": "<string>",
    "image": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required
userId
string
required

Body

application/json
role
enum<string>
required
Available options:
ADMIN,
MEMBER,
GUEST

Response

200 - application/json

Default Response

member
object
required