POST

Sends the XML body of a contact to Customer Collaboration Platform to make a request.

Alternatively, GET can be used to create a request. GET uses UTF-8 encoded URL parameters to provide the parameters required for the request. See GET (Create Task Request).

URL:

https://<server>:<port>/ccp/rest/task/feed/<TaskFeedId>

HTTPS method:

POST

Parameters:

See Task Submission API Parameters.

Example XML request payload:


<Task>
   <name>name</name>
   <title>title</title>
   <description>description</description>
   <scriptSelector>StringIdentifier</scriptSelector>
   <customerUID>string</customerUID>
   <requeueOnRecovery>true|false</requeueOnRecovery>
   <!-- Indicates if the contact will be re-queued/discarded on 
   SM failure recovery-->
   <tags>
      <tag>tag1</tag>
      <tag>tag2</tag>
   </tags>
   <variables>
      <!-- Below two fields are optional fields.
       1) include mediaType to indicate the media type attribute of 
          POD when it is created.
       2) If podRefURL is passed then POD creation will be skipped 
          for this contact.
    <variable> 
      <name>mediaType</name> 
      <value>chat</value> 
    </variable>
    <variable> 
      <name>podRefURL</name> 
      <value>https://context-service.rciad.ciscoccservice.com/context/
      pod/v1/podId/b066c3c0-c346-11e5-b3dd-3f1450b33459</value> 
    </variable>  -->
      <variable>
         <name>cv_[1-10]</name>
         <value>callVariableValue</value>
      </variable>
      <variable>
         <name>user_(eccVariableName)</name>
         <value>eccVariableValue</value>
      </variable>
      <variable>
         <name>anythingElseExtensionFieldName</name>
         <value>anythingElseExtensionFieldValue</value>
      </variable>
   </variables>
</Task>

A reference URL to the contact is returned in the location field in the header:

https://<server>:<port>/ccp/rest/task/contact/6EEF968810000132000015F60A568DFB

Response codes:

201 Created

400 Bad Request

See HTTPS Responses for more information about the response codes.