Skip to main content
PATCH
Error

Path Parameters

tokenUuid
string
required

Body

application/json

In-place edit of a service account's name, permissions, and project access, without rotating its token. description is always applied. The rest is target-shaped — the payload describes what the SA should become, and the SA can move between scope modes:

  • projectAccess (or scopes = [system:member]) → project-scoped: replace its project grants (≥1 required), keeping scopes = [system:member]. Sending an org roleUuid / non-member scopes alongside is rejected.
  • org scopes (preset) or roleUuid (custom role) → organization-scoped: set the org permission and drop any project grants.
  • neither → rename only, preserving the current mode and permission.

The token and expiry are never touched.

description
string
required
projectAccess
object[]

Replace all project grants. Must contain at least one project.

roleUuid
string | null

Replace the organization custom role, instead of scopes.

scopes
enum<string>[]

Replace the organization role scopes. Omit to preserve existing permissions.

Available options:
scim:manage,
org:admin,
org:edit,
org:read,
system:member,
system:admin,
system:developer,
system:editor,
system:interactive_viewer,
system:viewer

Response

Success

results
object
required
status
enum<string>
required
Available options:
ok