---
title: "Update App Secret"
method: PATCH
path: "/v1/apps/{app_id}/secrets/{secret_id}"
tags: ["apps"]
---

# Update App Secret

`PATCH /v1/apps/{app_id}/secrets/{secret_id}`

## Request

- Base URL: `https://api.shapemaker.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.shapemaker.io/v1/apps/{app_id}/secrets/{secret_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `/v1/auth`

The note is editable; the expiry is not. A secret that needs a different
lifetime is a new secret, so a leaked one cannot be quietly extended.

## Path parameters

- `app_id` integer, required
- `secret_id` integer, required

## Request body

- AppSecretUpdateInput
  - `description` string

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/shapemaker/apis/shapemaker-api.md) - [All operations](https://skmtc.dev/shapemaker/apis/shapemaker-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shapemaker/apis/shapemaker-api/revisions/b8461cf1236c?raw)
