---
title: "Update a service account in the database"
method: PATCH
path: "/oauth/serviceAccounts/{client_id}"
tags: ["OAuth"]
---

# Update a service account in the database

`PATCH /oauth/serviceAccounts/{client_id}`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/oauth/serviceAccounts/{client_id}`
- Auth: none declared

Updates a service account in the database.

## Path parameters

- `client_id` string, required: String representation of a MongoDB ObjectId

## Request body

- object
  - `updates` OauthServiceAccountsClientIdPatchRequestBodyContentApplicationJsonSchemaUpdates
    - `description` string: The description of the service account

## Response `200`

The output of the service account update.

- OauthUpdateServiceAccountResponse200
  - `status` 'OK' | 'Created': The status of the API request.
  - `message` string: Message containing either confirmation of the operation or the reason for the failure of the operation.
  - `data` OauthServiceAccountsClientIdPatchResponsesContentApplicationJsonSchemaData
    - `description` string: The description of the service account

## Other responses

- `500`: Error response from API

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
