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
username
The username of the service account
name
The name of the service account
rootRole
The id of the root role for the service account
Response headers
location
The location of the newly created resource.
Response
The resource was successfully created.
id
The service account id
name
The name of the service account
username
The service account username
imageUrl
The service account image url
rootRole
The root role id associated with the service account
createdAt
The service account creation date
tokens
The list of tokens associated with the service account
isAPIDeprecated
Deprecated: for internal use only, should not be exposed through the API
emailDeprecated
Deprecated: service accounts don’t have emails associated with them
inviteLinkDeprecated
Deprecated: service accounts cannot be invited via an invitation link
loginAttemptsDeprecated
Deprecated: service accounts cannot log in to Unleash
emailSentDeprecated
Deprecated: internal use only
seenAtDeprecated
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.