Update a service account.

Enterprise feature

Updates an existing service account identified by its id.

Authentication

Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format

Path parameters

idstringRequired

Request

#/components/schemas/updateServiceAccountSchema

namestringOptional
The name of the service account
rootRoleintegerOptional
The id of the root role for the service account

Response

#/components/schemas/serviceAccountSchema

iddouble
The service account id
namestring or null
The name of the service account
usernamestring or null
The service account username
imageUrlstring or null
The service account image url
rootRoleinteger or null
The root role id associated with the service account
createdAtstring or nullformat: "date-time"
The service account creation date
tokenslist of objects or null
The list of tokens associated with the service account
isAPIboolean or nullDeprecated

Deprecated: for internal use only, should not be exposed through the API

emailstring or nullDeprecated

Deprecated: service accounts don’t have emails associated with them

loginAttemptsdouble or nullDeprecated

Deprecated: service accounts cannot log in to Unleash

emailSentboolean or nullDeprecated

Deprecated: internal use only

seenAtstring or nullformat: "date-time"Deprecated

Deprecated. This property is always null. To find out when a service account was last seen, check its tokens list and refer to each token’s lastSeen property instead.

Errors