POST

Creates a campaign.

URL:

https://<ServerIP>:<Port>/ccp-webapp/ccp/campaign

HTTPS method:

POST

Parameters:

See Campaign API Parameters.

Example XML request payload:

<Campaign>
  <name>MyTestCampaign</name>
  <publicId>MyTestCampaign</publicId>
  <description>This is my test campaign</description>
  <includeExpr>Cisco Expert Advisor</includeExpr>
  <excludeExpr>ICM</excludeExpr>
  <chatInvitationFeed>
    https://[ServerIP]:[Port]/ccp-webapp/ccp/feed/5000
  </chatInvitationFeed>  
  <feeds>
    <feed>
     https://[ServerIP]:[Port]/ccp-webapp/ccp/feed/5000
    </feed>
    <feed>
     https://[ServerIP]:[Port]/ccp-webapp/ccp/feed/5001
    </feed>
  </feeds>
  <filters>
    <filter>
     https://[ServerIP]:[Port]/ccp-webapp/ccp/filter/6000
    </filter>
    <filter>
     https://[ServerIP]:[Port]/ccp-webapp/ccp/filter/6001
    </filter>
  </filters>
</Campaign>

HTTPS response headers:

If the campaign is successfully created, the URL of the created resource is returned.

https/1.1 201 Created
Location: https://<ServerIP>:<Port>/ccp-webapp/ccp/
campaign/MyTestCampaign
Content-Type: text/plain
Content-Length: 0
Date: Tue, 12 Jan 2010 16:41:14 GMT

See also HTTPS Responses.