Create a service account.

View as Markdown

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
The location of the newly created resource.

Response

The resource was successfully created.
iddouble
The service account id
namestring
The name of the service account
usernamestring
The service account username
imageUrlstring
The service account image url
rootRoleinteger
The root role id associated with the service account
createdAtstringformat: "date-time"
The service account creation date
tokenslist of objects
The list of tokens associated with the service account
isAPIbooleanDeprecated

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

emailstringDeprecated

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

loginAttemptsdoubleDeprecated

Deprecated: service accounts cannot log in to Unleash

emailSentbooleanDeprecated

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

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
415
Unsupported Media Type Error