---
title: "Update existing audio message"
method: PUT
path: "/audio-messages/{message_id}/"
tags: ["audio-message"]
---

# Update existing audio message

`PUT /audio-messages/{message_id}/`

## Request

- Base URL: `https://api.angelcam.com/v1`
- URL: `https://api.angelcam.com/v1/audio-messages/{message_id}/`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://my.angelcam.com/oauth/authorize/`, token URL `https://my.angelcam.com/oauth/token/`
    - Password, token URL `https://api.angelcam.com/oauth/token/`
    - Scopes: `audio_message_manage`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/angelcam/apis/angelcam-api/docs/audio-messages/:message_id/put.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- AudioMessageWriteObject
  - `name` string, required: Audio message name
  - `message` string, 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.

## Response `200`

Updated audio message object.

- AudioMessageObject
  - `id` integer, required: Audio message ID
  - `name` string, required: Audio message name
  - `message` string, url, required: URL where the audio message content can be downloaded

## Other responses

- `400`: Body payload is invalid.
- `401`: Missing or invalid authorization.
- `403`: Missing permission.
- `404`: The specified resource was not found

---

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