---
title: "Regenerate client secret"
method: PATCH
path: "/oauth/serviceAccounts/{client_id}/regenerate"
tags: ["OAuth"]
---

# Regenerate client secret

`PATCH /oauth/serviceAccounts/{client_id}/regenerate`

## Request

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

Regenerates the client_secret and returns the new value.

## Path parameters

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

## Response `200`

The new client credentials for a service account

- OauthRegenerateSecretResponse200: The updated client credentials for an existing service account
  - `client_id` string: String representation of a MongoDB ObjectId
  - `client_secret` string: Uuid representation of client secret

## 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)
