Was this helpful?
Retrieve a collection of moh musics.
/moh_server/musics
curl -L \ --url 'https://HOSTNAME:8887/api/moh_server/musics' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{ "items": [] }
Create a MOH music.
The unique ID of the file.
curl -L \ --request POST \ --url 'https://HOSTNAME:8887/api/moh_server/musics' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --data '{"file_id":"NzAwNTUxOTA5NzczMTQ4MTYw"}'
{ "id": "NzAwNTUxOTA5NzczMTQ4MTYw" }
Retrieve a moh music.
/moh_server/musics/{id}
The unique ID of MOH music.
curl -L \ --url 'https://HOSTNAME:8887/api/moh_server/musics/{id}' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{ "file_name": "text", "file_size": 0, "file_url": "/api/blobs/WexWdABcd5D4PDgzTKV3gAAAEu00WcK", "id": "NzAwNTUxOTA5NzczMTQ4MTYw" }