---
title: "Update Service Account"
method: PATCH
path: "/service-accounts/{service_account_id}"
tags: ["service-accounts"]
---

# Update Service Account

`PATCH /service-accounts/{service_account_id}`

## Path parameters

- `service_account_id` string, required

## Request body

- UpdateServiceAccountRequest
  - `name` string, nullable
  - `description` string, nullable
  - `disabled` boolean, nullable
  - `role` 'org_admin' | 'org_member' | 'org_setup_user' — Organization-level roles for customer users. These roles require an organization_id and only apply within that organization. Users can have different roles in different organizations. Attributes: ADMIN: Full access within the organization. Can manage users, configure integrations, view/edit all sessions, manage billing. MEMBER: Standard user access within the organization. Can create and view their own sessions, view team sessions, use integrations. SETUP_USER: Limited setup access. Can configure integrations, but cannot view sessions or start investigations.

## Response `200`

Successful Response

- ServiceAccount — Public service-account resource. ``principal_id`` is internal and omitted.
  - `id` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `role` 'org_admin' | 'org_member' | 'org_setup_user', required — Organization-level roles for customer users. These roles require an organization_id and only apply within that organization. Users can have different roles in different organizations. Attributes: ADMIN: Full access within the organization. Can manage users, configure integrations, view/edit all sessions, manage billing. MEMBER: Standard user access within the organization. Can create and view their own sessions, view team sessions, use integrations. SETUP_USER: Limited setup access. Can configure integrations, but cannot view sessions or start investigations.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `disabled_at` string, date-time, nullable, required
  - `is_default` boolean, required
  - `archived_at` string, date-time, nullable

## Other responses

- `422` — Validation Error

## Changes

> 57 revisions in range; 9 not diffed.

- **2026-09-24** `6a1626105afb` — 1 info
  - added the required property `is_default` to the response with the `200` status
- **2026-09-09** `50f9ba1b135c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/traversal/apis/fastapi/changes/service-accounts/:service_account_id/patch.md)

---

[API](https://skmtc.dev/traversal/apis/fastapi.md) · [All operations](https://skmtc.dev/traversal/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc.dev/traversal/apis/fastapi/revisions/c3bd9dec6c16?raw)
