Skip to main content

Update a service account.

PUT /api/admin/service-account/:id

Updates an existing service account identified by its id.

Request

Path Parameters

  • id string required

Body

required

updateServiceAccountSchema

  • name string

    The name of the service account

  • rootRole integer

    The id of the root role for the service account

  • property name* any

    Describes the properties required to update a service account

Responses

serviceAccountSchema

Schema
  • id number required

    The service account id

  • isAPI boolean deprecated

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

  • name string

    The name of the service account

  • email string deprecated

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

  • username string

    The service account username

  • imageUrl string

    The service account image url

  • inviteLink string deprecated

    Deprecated: service accounts cannot be invited via an invitation link

  • loginAttempts number deprecated

    Deprecated: service accounts cannot log in to Unleash

  • emailSent boolean deprecated

    Deprecated: internal use only

  • rootRole integer

    The root role id associated with the service account

  • seenAt date-time nullable 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.

  • createdAt date-time

    The service account creation date

  • tokens object[]

    The list of tokens associated with the service account

  • Array [
  • id integer

    Possible values: >= 1

    The unique identification number for this Personal Access Token. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.)

  • secret string

    The token used for authentication. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.)

  • expiresAt date-time

    The token's expiration date.

  • createdAt date-time

    When the token was created. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.)

  • seenAt date-time nullable

    When the token was last seen/used to authenticate with. null if it has not been used yet. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.)

  • ]
Loading...