cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Please note that Remote Expert Mobile announced end-of-life and support will end on February 28, 2022.
336
Views
0
Helpful
1
Replies
Highlighted
Contributor

CUPI - create a SMTP Notification Device without Event Type

Hello,

I want to create a SMTP Notification Device for a User Template without any "Event Type" using CUPI.

According to a GET request on an existing Notification Device, I have to use an empty string for "EventList".

Here is the content body, I send:

    {

        "SendCount": "false",

        "SmtpAddress": "smtpaddress@test.fr",

        "Active": "true",

        "DisplayName": "testsmtp",

        "MaxBody": "512",

        "MaxSubject": "64",

        "SubscriberObjectId": "864ba323-0a65-44aa-a6ff-5e5471afea4e",

        "SendCallerId": "false",

        "SendPcaLink": "false",

        "Undeletable": "false",

        "EventList": "",

        "ScheduleSetObjectId": "4b794a3e-7b91-40d4-9306-2fa13826bdde",

        "InitialDelay": "4",

        "RepeatInterval": "5",

        "RepeatNotify": "true",

        "VoiceMessage": "false",

        "UrgentOnly": "false"

    }

And the response:

    {

        "errors":

        {

            "code": "INVALID_PARAMETER",

            "message": "Unrecognized event: "

        }

    }

Why the empty string is not accepted in creation whether it's accepted in modification? This looks like a bug?

Thanks,

Fabien

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

Re: CUPI - create a SMTP Notification Device without Event Type

if you remove the EventList property entirely it will create the device - however it will default to "All Voice Messages" being flagged if you don't pass anything in.  It's not typical to have a notification device with no event triggers on it - it's more proper to create it as not enabled vs. enabled with no event types defined - which is probably why the create new method barks about that.

View solution in original post

1 REPLY 1
Highlighted
Cisco Employee

Re: CUPI - create a SMTP Notification Device without Event Type

if you remove the EventList property entirely it will create the device - however it will default to "All Voice Messages" being flagged if you don't pass anything in.  It's not typical to have a notification device with no event triggers on it - it's more proper to create it as not enabled vs. enabled with no event types defined - which is probably why the create new method barks about that.

View solution in original post

This widget could not be displayed.