Skip to main content
PATCH
cURL

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.

Path Parameters

service_account_id
string
required

Body

application/json

Request to update a service account. Only the fields sent change.

name
string | null

Name, unique in the organization

Required string length: 1 - 255
description
string | null

Description, up to 1,024 characters; null clears it

Maximum string length: 1024
disabled
boolean | null

Disable the account to stop it being used, or enable it again. Disabling the account permanently revokes its access tokens.

preset_permissions
ServiceAccountPresetPermissionsRequestV1 · object | null

Replaces the account's access as a whole. Refused for an account whose access comes from its role assignments. Temporary; may be removed once fine-grained access control is available.

Response

200 - application/json

A named service account that workload identity federation tokens act as.

id
string
required

Service account ID

name
string
required

Name, unique in the organization

disabled
boolean
required

Whether the account is disabled. A disabled account can't be used.

created_at
string<date-time>
required

Time the account was created

updated_at
string<date-time>
required

Time the account was last updated

description
string | null

Description

team_id
string | null

The team that owns the account. Null for an organization account.

preset_permissions
ServiceAccountPresetPermissionsV1 · object | null

What the service account may do. Null when its access comes from its role assignments instead. Temporary; may be removed once fine-grained access control is available.

last_used_at
string<date-time> | null

Last time a request authenticated as this account, to within an hour. Null until the first.