audio-message

Update existing audio message

put/audio-messages/{message_id}/

Request

  • Base URL
    https://api.angelcam.com/v1
  • Auth
    • OAuth 2
      Authorization codehttps://my.angelcam.com/oauth/authorize/, token URL https://my.angelcam.com/oauth/token/
      PasswordToken URL https://api.angelcam.com/oauth/token/
      Scopesaudio_message_manage
    • or API key in header Authorization
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Request body

namestring required

Audio message name

messagestring base64 required

Base64-encoded audio file. Supported formats: audio/aac, audio/mpeg (MP3), audio/wav, audio/ogg, audio/webm. Keep files short — a few seconds is ideal for reliable playback.

Example request

{
  "id": 157,
  "name": "Alarm",
  "message": "dGhlIGF1ZGlvIGZpbGUgY29udGVudCBnb2VzIGhlcmU="
}

Response

Updated audio message object.

idinteger required

Audio message ID

namestring required

Audio message name

messagestring url required

URL where the audio message content can be downloaded

Example response

{
  "id": 157,
  "name": "Alarm",
  "message": "https://example.com/alarm.mp3"
}

Changes

No recorded changes to this operation across all 1 revision of this API.