latestOpenAPI 3.1.02026-08-20118232229.3 KB

0e42b0fb26d9

Update service account

Update one or more fields on an existing service account. Team admin only.

patch/service-accounts/{idOrName}

Path parameters

idOrNamestring required

The ID or name of the service account to update.

The ID or name of the service account to update.

Request body

$schemastring uri

A URL to the JSON Schema for this object.

metadatastring

Replacement JSON metadata for the service account.

namestring

The new human-readable name for the service account.

role'admin' | 'developer'

The new team role this service account acts as.

Example request

{
  "$schema": "https://api.tower.dev/v1/schemas/UpdateServiceAccountParams.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

Example response

{
  "$schema": "https://api.tower.dev/v1/schemas/UpdateServiceAccountResponse.json"
}