Skip to main content

AddSoundToMOHClass adds a sound to a MOH class.

POST 

/api/v1/voice/moh-classes/:mohClassId/sounds

Adds an existing sound file to the MOH class playlist.

Parameters

  • moh_class_id: Required, class to add sound to
  • sound_id: Required, sound to add
  • position: Optional, playlist position (0 = append at end)

Errors

  • NOT_FOUND: Class or sound does not exist
  • ALREADY_EXISTS: Sound already in class
  • PERMISSION_DENIED: Caller lacks voice:moh_class:write permission

Request

Responses

A successful response.