Skip to main content
The First Step
June 23, 2022
Question

Can I upload greeting to Announcement-Only Extensions

We have a status hotline Announcement-Only Extension that we use to update the status of our network, to let people call in and listen to a messaging saying if we are up or down. Is there a function in the API that would allow me to upload a new announcement? Or is there another way this can be accomplished without have to call in and manually record a new message.


    12 replies

    ken-nyeThe First StepAuthor
    The First Step
    July 15, 2022

    Now Im in production, my code is not giving errors, but when I listen to the announcement, it doesn't change. I first got all the extensions to find our hotline announcement only extension

    { "uri": "https://platform.ringcentral.com/restapi/v1.0/account/1030240019/extension/1030288019", "id": 1030288019, "extensionNumber": "1", "contact": { "firstName": "hotline", "email": "@surfnetc.com", "pronouncedName": { "type": "Recorded", "text": "hotline", "prompt": { "id": "3782273019", "contentType": "audio/wav", "contentUri": "https://media.ringcentral.com/restapi/v1.0/account/1030240019/extension/1030288019/greeting/3782273019/content" } } }, "name": "hotline", "type": "Announcement", "status": "Enabled", "permissions": { "admin": { "enabled": false }, "internationalCalling": { "enabled": false } }, "profileImage": { "uri": "https://platform.ringcentral.com/restapi/v1.0/account/1030240019/extension/1030288019/profile-image" }, "hidden": false }

    Then I used that info to build my request

    ->request('/account/1030240019/extension/1030288019/greeting?apply=false');

    then I uploaded the new greeting and got this response.

    Greeting Posted. Response: { "uri": "https://platform.ringcentral.com/restapi/v1.0/account/1030240019/extension/1030288019/greeting/761570018", "id": "761570018", "type": "Announcement", "contentType": "audio/wav", "contentUri": "https://media.ringcentral.com/restapi/v1.0/account/1030240019/extension/1030288019/greeting/761570018/content" }

    but when I listen the hotline announcement, it hasnt changed.

    Where did I go wrong?

    thanks for any and all help

    PhongVu
    Community Manager
    Community Manager
    July 15, 2022

    set this flag to apply after changing it

    ->request('/account/1030240019/extension/1030288019/greeting?apply=true');