Update or replace a recording

PATCH/api/v1/domains/{domain_uuid}/recordings/{recording_uuid}

Change the recording name, description, audio file, or a combination. At least one update field is required. To replace audio, send multipart/form-data using POST with _method=PATCH. The recording UUID and filename stay the same, so existing routing references use the replacement audio. Replacing shared audio affects every feature that uses that recording. For a name or description change without uploading audio, send PATCH with a JSON body; omitted fields stay unchanged.

This request changes the recordings available to your phone system.

Path parameters

domain_uuidstringrequired

Your company ID supplied by Junction Cloud Connections.

recording_uuidstringrequired

The recording UUID.

Request body multipart/form-data

recording_namestring

Optional recording display name.

recording_descriptionstring

Optional description; may be null.

filestring

Optional WAV, MP3, or M4A audio file. Maximum size: 50 MB.

Format: binary

_methodstring

Required only for multipart audio uploads. Must be PATCH.

Request body application/json

recording_namestring

Optional recording display name.

recording_descriptionstring

Optional description; may be null.

Change only the name or description

Send PATCH to the same endpoint with Content-Type: application/json. Include at least one field. This example leaves the audio unchanged.

JSON
{"recording_name": "Main greeting", "recording_description": "Business-hours greeting"}

Responses

200Metadata updated
recording_uuidstring
objectstring
domain_uuidstring
recording_namestring
recording_descriptionstring
recording_filenamestring
audio_availableboolean
audio_replacedboolean
bytesinteger
sha256string
400Invalid recording UUID
errorobject
Show nested fields
typestring
messagestring
codestring
paramstring
401Unauthenticated
errorobject
Show nested fields
typestring
messagestring
codestring
403The request is not available for this account.
404Recording not found
errorobject
Show nested fields
typestring
messagestring
codestring
paramstring
422Audio processing failed
errorobject
Show nested fields
typestring
messagestring
codestring
paramstring
500Internal error
errorobject
Show nested fields
typestring
messagestring
codestring