Skip to main content
PATCH
Update a service account.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

service_account_id
string<uuid>
required

The service account's uuid.

Body

application/json

At least one field must be supplied. capability_scopes (org-scoped accounts) and project_grants (project-scoped accounts) each replace the full set, and may be empty to clear it. grant_type cannot be changed, and status changes go through the status endpoint. Unknown fields — including grant_type, principal_type, and status — return a 400.

name
string

Service-account name, unique within the organization. Must start with a letter, then letters, digits, spaces, hyphens, or underscores. Leading and trailing whitespace is stripped.

Required string length: 1 - 128
Pattern: ^[A-Za-z][A-Za-z0-9_ -]*$
description
string | null

Optional free-text description.

Maximum string length: 512
capability_scopes
enum<string>[]

Replaces the org-scoped account's full set of capability scopes. May be empty; duplicates are collapsed.

A capability scope (not an OAuth scope) an org-scoped service account may hold. models:artifact-read is held only by the service account Fiddler manages for each model deployment and cannot be assigned by users.

Available options:
traces:ingest,
models:artifact-read,
guardrails:invoke
project_grants
object[]

Replaces the project-scoped account's full set of grants. May be empty; each project may appear at most once, and an account may hold at most 50 grants (a larger set returns 400).

Maximum array length: 50

Response

The updated service account.

Response object for standard API responses.

api_version
enum<string>
default:3.0

API version.

Available options:
2.0,
3.0
kind
enum<string>
default:NORMAL

Type of response, indicating a normal response.

Available options:
NORMAL
data
object

A single service account, adding capability_scopes, project_grants, and the per-account key limit to the common fields.