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

# Update Service Account

`PATCH /service-accounts/{service_account_id}`

## Request

- Base URL: `https://api.traversal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.traversal.com/service-accounts/{service_account_id}`
- Auth: none declared

## 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

> 66 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

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

---

[API](https://skmtc.dev/traversal/apis/traversal-api.md) - [All operations](https://skmtc.dev/traversal/apis/traversal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/traversal/apis/traversal-api/revisions/31e1a8b7cf89?raw)
