---
title: "Update a service account"
method: PATCH
path: "/orgs/{org_id}/service-accounts/{sa_id}"
tags: ["service-accounts"]
---

# Update a service account

`PATCH /orgs/{org_id}/service-accounts/{sa_id}`

Updates the service account name. Members may only update service accounts they created.

## Path parameters

- `org_id` string, required
- `sa_id` string, required

## Request body

- InternalApiAdminUpdateServiceAccountRequest
  - `name` string

## Response `200`

OK

- InternalApiAdminServiceAccountResponse
  - `created_at` string
  - `created_by` string
  - `deleted_at` string
  - `id` string
  - `key_count` integer
  - `name` string
  - `org_id` string
  - `team_id` string
  - `updated_at` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/voidmind-io/apis/untitled-api.md) · [All operations](https://skmtc.dev/voidmind-io/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/voidmind-io/untitled-api/revisions/1405e7d9c155/schema)
