Skip to main content
PATCH
/
projects
/
{projectId}
/
members
/
{memberId}
/
role
curl -X PATCH http://localhost:3000/api/v1/projects/clxyz456/members/clmem001/role \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"role": "ADMIN"}'
{
  "id": "clmem001",
  "userId": "cljane001",
  "projectId": "clxyz456",
  "role": "ADMIN"
}

Path Parameters

projectId
string
required
Project ID.
memberId
string
required
Member ID.

Body

role
string
required
New role: VIEWER, EDITOR, or ADMIN.
curl -X PATCH http://localhost:3000/api/v1/projects/clxyz456/members/clmem001/role \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"role": "ADMIN"}'
{
  "id": "clmem001",
  "userId": "cljane001",
  "projectId": "clxyz456",
  "role": "ADMIN"
}