---
title: "Rotate a project's client secret key"
method: POST
path: "/api/v1/projects/{projectId}/clients/{clientId}/rotate-secret"
tags: ["Project Clients"]
---

# Rotate a project's client secret key

`POST /api/v1/projects/{projectId}/clients/{clientId}/rotate-secret`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/projects/{projectId}/clients/{clientId}/rotate-secret`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/v1/auth/token`
- TypeScript: <https://skmtc.dev/ever-co/apis/ever-traduora-api/docs/api/v1/projects/:projectId/clients/:clientId/rotate-secret/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `clientId` string, required
- `projectId` string, required

## Response `200`

Success

- ProjectClientWithSecretResponse
  - `data` ProjectClientWithSecretDTO, required
    - `id` string, required
    - `name` string, required
    - `role` 'admin' | 'editor' | 'viewer', required
    - `secret` string, required

## Other responses

- `401`: Unauthorized
- `404`: Project or client not found

---

[API](https://skmtc.dev/ever-co/apis/ever-traduora-api.md) - [All operations](https://skmtc.dev/ever-co/apis/ever-traduora-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ever-co/apis/ever-traduora-api/revisions/50176ec21566?raw)
