---
title: "Pin or clear the story's Voiceprint"
method: PATCH
path: "/stories/{id}/voice"
tags: ["voice"]
---

# Pin or clear the story's Voiceprint

`PATCH /stories/{id}/voice`

## Request

- Base URL: `https://aistoryhub.co/api/v1`
- URL: `https://aistoryhub.co/api/v1/stories/{id}/voice`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `voiceprint_id` string, uuid, nullable, required: A Voiceprint id you own, or null to clear the pin.

## Response `200`

The pin's new state.

- object
  - `voiceprint_id` string, uuid, nullable

## Other responses

- `400`: The request body or parameters are invalid.
- `401`: Missing, malformed, invalid, revoked, or expired token.
- `403`: The token lacks the scope this endpoint requires.
- `404`: The resource does not exist or you do not own it.
- `429`: Too many requests. Retry after the delay in the `Retry-After` header.

---

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