Skip to main content
PUT
/
projects
/
{project_id}
/
collaborators
/
{member_id}
Set Project Collaborator Role
curl --request PUT \
  --url https://api.example.com/projects/{project_id}/collaborators/{member_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "discoverer"
}
'
{
  "member_id": "<string>",
  "role": "discoverer"
}

Documentation Index

Fetch the complete documentation index at: https://docs.terminaluse.com/llms.txt

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

Create or update an explicit collaborator role on a project. This allows granting project-specific access to users without changing their namespace or organization roles.

Path Parameters

project_id
string
required
member_id
string
required

Body

application/json

Request model for setting/updating a project collaborator role.

role
enum<string>
required

Role to assign.

Available options:
discoverer,
viewer,
editor,
owner

Response

Successful Response

Response model for project collaborator.

member_id
string
required

The WorkOS user ID of the collaborator.

role
enum<string>
required

Collaborator role.

Available options:
discoverer,
viewer,
editor,
owner