Sample - OpenAI API
POST/audio/voice_consents/{consent_id}

Update voice consent metadata

Updates the metadata for a voice consent recording. Supply the recording identifier in consent_id and provide the replacement name; the recording audio itself is not changed.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

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

Metadata for the voice consent recording; the audio content is not updated.

namestringrequired
The updated label for this consent recording.

1 status code
200Returns the updated voice consent object with its identifier, name, language, and Unix creation timestamp.
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

name is required in the request body, and consent_id must identify the voice consent recording to update.