cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
641
Views
0
Helpful
1
Replies

CUPI - create a SMTP Notification Device without Event Type

fabien.bonic
Level 5
Level 5

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

1 Accepted Solution

Accepted Solutions

lindborg
Cisco Employee
Cisco Employee

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

lindborg
Cisco Employee
Cisco Employee

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.