Skip to main content
PATCH
Python

Authorizations

Authorization
string
header
required

Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.

Path Parameters

id
string
required
Minimum string length: 1

Body

application/json
role
enum<string>
required
Available options:
ADMIN,
MEMBER,
VIEWER,
CUSTOM
customRoleId
string
Minimum string length: 1

Response

200 - application/json

Success

id
string
required
principal
object
required
role
enum<string>
required
Available options:
ADMIN,
MEMBER,
VIEWER,
CUSTOM
customRoleId
string | null
required
customRoleName
string | null
required
scopeType
enum<string>
required
Available options:
ORGANIZATION,
TEAM,
PROJECT
scopeId
string
required
scopeName
string | null
required
createdAt
string
required