Skip to main content
PATCH
Change a project member's role

Authorizations

hookie_session
string
cookie
required

The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.

Path Parameters

project_id
string
required
user_id
string
required

Body

application/json
role
enum<string>
required

In the project a member acts with the weaker of this and their workspace role.

Available options:
project_admin,
developer,
viewer

Response

The project member as they now are.

ok
enum<boolean>
required
Available options:
true
member
object | null
required