Create a service account.

Enterprise feature

Creates a new service account.

Authentication

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

Request

#/components/schemas/createServiceAccountSchema

usernamestringRequired
The username of the service account
namestringRequired
The name of the service account
rootRoleintegerRequired
The id of the root role for the service account

Response headers

locationstring or null
The location of the newly created resource.

Response

The resource was successfully created.
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