Skip to main content
PATCH
/
workspaces
/
{workspace_id}
/
members
/
{membership_id}
Update workspace member
curl --request PATCH \
  --url https://api.wacht.dev/workspaces/{workspace_id}/members/{membership_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role_ids": [
    "5555555555",
    "6666666666"
  ],
  "public_metadata": {}
}
'
{}

Authorizations

Authorization
string
header
required

API key authentication (Bearer token)

Path Parameters

workspace_id
string
required

Workspace ID (integer as string)

membership_id
string
required

Membership ID (integer as string)

Body

application/json
role_ids
string[]

Role IDs to assign (array of integers as strings)

Example:
["5555555555", "6666666666"]
public_metadata
object

Public metadata (custom fields)

Example:
{}

Response

Member updated successfully

The response is of type object.