---
title: "Set Project Collaborator Role"
method: PUT
path: "/projects/{project_id}/collaborators/{member_id}"
tags: ["Projects"]
---

# Set Project Collaborator Role

`PUT /projects/{project_id}/collaborators/{member_id}`

Create or update an explicit collaborator role on a project.

## Path parameters

- `project_id` string, required
- `member_id` string, required

## Request body

- UpsertProjectCollaboratorRequest — Request model for setting/updating a project collaborator role.
  - `role` 'discoverer' | 'viewer' | 'editor' | 'owner', required — Role to assign.

## Response `200`

Successful Response

- ProjectCollaboratorResponse — Response model for project collaborator.
  - `member_id` string, required — The WorkOS user ID of the collaborator.
  - `role` 'discoverer' | 'viewer' | 'editor' | 'owner', required — Collaborator role.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/terminaluse/apis/sb0-api.md) · [All operations](https://skmtc.dev/terminaluse/apis/sb0-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/terminaluse/sb0-api/revisions/f24a474dc415/schema)
