---
title: "Rotate project secret key (admin)"
method: PUT
path: "/admin/v1/project/{project_id}/secret_key"
tags: ["admin"]
---

# Rotate project secret key (admin)

`PUT /admin/v1/project/{project_id}/secret_key`

Generate a new secret key for a non-encrypted project. Blocked for encrypted projects.

## Path parameters

- `project_id` string, uuid, required

## Response `200`

OK

- object
  - `code` integer
  - `error` string
  - `msg` string
  - `data` ServiceUpdateSecretKeyOutput
    - `secret_key` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

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