---
title: "PATCH /v1/service-accounts/{id}"
method: PATCH
path: "/v1/service-accounts/{id}"
---

# PATCH /v1/service-accounts/{id}

`PATCH /v1/service-accounts/{id}`

Update a service account's name, description, and permissions

## Path parameters

- `id` string, required

## Request body

- union
  - object
  - UpdateServiceAccountParams
    - `description` string
    - `name` string, required
    - `permissions` string[], required

## Response `200`

OK

- GetServiceAccountSuccessResponse
  - `code` integer
  - `data` ServiceAccount
    - `createdAt` string
    - `createdBy` string
    - `description` string
    - `disabledAt` string
    - `id` string
    - `name` string
    - `organizationId` string
    - `permissions` Permission[]
    - `status` 'active' | 'disabled'
    - `updatedAt` string
  - `message` string
  - `requestId` string

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/b3os/apis/b3os-workflow-api.md) · [All operations](https://skmtc.dev/b3os/apis/b3os-workflow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/b3os/b3os-workflow-api/revisions/a8c7af3c66a1/schema)
