cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1496
Views
0
Helpful
6
Replies

Outbound API Campaign Update Error

galguire
Level 4
Level 4

Greetings,

Can you provide the URL and Body example to update a campaign via the Outbound API.  I am able to Create Campaign, Get Campaign Definition, Get Campaign Records, Import Campaign Records, Delete Campaign Records, and Delete Campaign, but the Campaign Update fails with:

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<apiErrors>
    <apiError>
        <errorMessage>415 Unsupported Media Type - null</errorMessage>
    </apiError>
</apiErrors>

 

Documentation isn't clear on which host to utilize (Logger or AW) or the format of Body and Headers.

My PUT URL is:

https://aw1.swyd.com/unifiedconfig/config/campaign/5004

My Body is:

    <timeZone>
        <refURL>/unifiedconfig/config/timezone/UTC</refURL>
    </timeZone>

My Headers are:

Accept application/xml

 

Thanks,

Gary

1 Accepted Solution

Accepted Solutions

galguire
Level 4
Level 4

This has been resolved.

 

Content-Type application/xml is a required header and the body needs to include the changeStamp.

View solution in original post

6 Replies 6

galguire
Level 4
Level 4

This has been resolved.

 

Content-Type application/xml is a required header and the body needs to include the changeStamp.

Muhammed Ashiq
Level 1
Level 1

what is the URL for deleting the dial list from a specific campaign please ?

 

DELETE method on https://<server>/unifiedconfig/config/campaign/<id>/import.

david

What is the content of the body as i am getting 413 unsupported media

Is there any content in Body of Delete Request ?