Swagger Petstore - OpenAPI 3.0
POST/audio/voice_consents/{consent_id}

Update a voice consent recording label

Updates the metadata label of an existing voice consent recording. This endpoint modifies only the name field and does not replace or re-upload the underlying audio file. Use this to change how the consent recording is labeled in your account.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 1 body field
consent_idstringrequired
The unique identifier of the voice consent recording to update.

Metadata update for the consent recording.

namestringrequired
The updated label for this consent recording.

1 status code
200Returns the updated voice consent object with the new name and unchanged audio metadata.
objectstringrequired
The object type, which is always `audio.voice_consent`.
Allowed:audio.voice_consent
idstringrequired
The consent recording identifier.
namestringrequired
The label provided when the consent recording was uploaded.
languagestringrequired
The BCP 47 language tag for the consent phrase (for example, `en-US`).
created_atintegerrequired
The Unix timestamp (in seconds) for when the consent recording was created.

Error handling

consent_id must identify an existing voice consent recording. name is required and must be a non-empty string.