Skip to main content
PATCH
Change a 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

user_id
string
required

Body

application/json
role
enum<string>
required
Available options:
admin,
developer,
viewer

Response

Saved (or unchanged). The member as they now are.

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