---
title: "Update Service Account"
method: PATCH
path: "/ServiceAccounts"
tags: ["Serviceaccounts"]
---

# Update Service Account

`PATCH /ServiceAccounts`

**Requires permission:** *IT*

Update a service account - this will not update the client secret

## Query parameters

- `page` integer, required
- `pageSize` integer, required
- `includes` string[], nullable
- `sort` string, nullable
- `filter` string, nullable

## Request body

- PatchServiceAccountRequest
  - `serviceAccount` ServiceAccount
    - `id` string, guid
    - `displayName` string, nullable
    - `purpose` string, nullable
    - `clientId` string, nullable
    - `clientSecret` string, nullable
    - `permissions` string, nullable
    - `appAccess` boolean
    - `appLink` string, nullable
    - `allowedApis` string, nullable
    - `active` boolean
    - `tokenLifetimeSeconds` integer, nullable
    - `lastUsed` string, date-time, nullable
    - `allowedApisList` string[]

## Response `204`

Success - Updated Service Account

## Other responses

- `400` — An Error Occurred - Could not update Service Account
- `401` — Unauthorized
- `403` — Forbidden

---

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