---
title: "Update a service account"
method: PATCH
path: "/api/v0/service-accounts/{serviceAccountId}"
tags: ["Service Accounts"]
---

# Update a service account

`PATCH /api/v0/service-accounts/{serviceAccountId}`

Updates a service account description or status. Name is immutable. Requires human authentication with a Manager role or higher; service account credentials are rejected.

## Path parameters

- `serviceAccountId` string, required — Service account ID

## Request body

- UpdateServiceAccountRequestBody
  - `description` string
  - `status` 'active' | 'inactive'

## Response `200`

Response for status 200

- UpdateServiceAccount200ResponseBody
  - `serviceAccount` object, required
    - `id` string, required
    - `name` string, required
    - `description` string
    - `status` 'active' | 'inactive' | 'deleted', required
    - `createdBy` string, required
    - `createdAt` number, required — Unix epoch milliseconds when the service account was created
    - `updatedAt` number — Unix epoch milliseconds when the service account was last updated

## Other responses

- `400` — Response for status 400
- `401` — Response for status 401
- `402` — Response for status 402
- `403` — Response for status 403
- `404` — Response for status 404
- `500` — Response for status 500

---

[API](https://skmtc.net/factory/apis/factory-public-api.md) · [All operations](https://skmtc.net/factory/apis/factory-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/factory/factory-public-api/versions/684f94d47ca9/schema)
