Skip to main content
Update a workspace member role
curl --request PATCH \
  --url https://api.acornops.dev/api/v1/workspaces/{workspaceId}/members/{userId} \
  --header 'Content-Type: application/json' \
  --cookie acornops_cp_session= \
  --data '
{
  "role": "<string>"
}
'
{
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "role": "<string>",
  "email": "jsmith@example.com",
  "displayName": "<string>",
  "roleTemplate": {
    "key": "<string>",
    "displayName": "<string>",
    "capabilities": [
      "<string>"
    ],
    "protected": true,
    "sortOrder": 123,
    "description": "<string>"
  },
  "joinedAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.acornops.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

acornops_cp_session
string
cookie
required

Path Parameters

workspaceId
string<uuid>
required
Example:

"4b930d98-add9-4924-ab26-3c16d96ec373"

userId
string<uuid>
required

Body

application/json
role
string
required

Deployment-supported workspace role key. Built-ins are owner, admin, operator, viewer, and auditor; custom roles are lowercase snake_case.

Pattern: ^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$

Response

Workspace member updated. Response includes roleTemplate when the role is supported.

workspaceId
string<uuid>
required
userId
string<uuid>
required
role
string
required
email
string<email>
displayName
string
roleTemplate
object
joinedAt
string<date-time>