Skip to Content
Xeonr Developer Docs

Update Team Service Account

POST
/xeonr.auth.api.v1.ServiceAccountsService/UpdateTeamServiceAccount

Changes the fields named in update_mask (description, enabled, application_roles, scopes) of one of the calling application's team service accounts. Disabling refuses its keys at verification and its tokens at use. on_behalf_of_user is held to the same standing as on creation, against the account's owning team.

Service accounts only, of a platform application.

Required scopes: auth:service-accounts:manage:own

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

id?string

urn:xeonr:auth:uid:service_account:.

Length1 <= length <= 128
description?string
Lengthlength <= 512
enabled?boolean
applicationRoles?array<>
Itemsitems <= 20
updateMask*string

description, enabled, application_roles, scopes.

onBehalfOfUser?string

urn:xeonr:auth:uid:user: of the person asking. Required.

Length1 <= length <= 128
scopes?array<>

As on creation.

Itemsitems <= 64
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.ServiceAccountsService/UpdateTeamServiceAccount" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{    "updateMask": "string"  }'
{
  "serviceAccount": {
    "id": "string",
    "name": "string",
    "description": "string",
    "applicationId": "string",
    "ownerTeam": "string",
    "ownerTeamSlug": "string",
    "applicationRoles": [
      "string"
    ],
    "enabled": true,
    "createdBy": "string",
    "assertedBy": "string",
    "createdAt": "2023-01-15T01:30:15.01Z",
    "updatedAt": "2023-01-15T01:30:15.01Z",
    "scopes": [
      "string"
    ]
  }
}