PUT (Train)

Adds the content of a document (text in the REST call) or social contact to the specified filter (objectId) and indicates whether to include or exclude this type of content when the filter runs.

URL:

https://<ServerIP>:<Port>/ccp-webapp/ccp/filter/<objectId>/train

HTTPS method:

PUT

Parameters:

  • document: Required if socialContact is not specified. String. The text on which to train the filter.

  • socialContact: Required if document is not specified. String. The URL of the social contact containing the content on which to train the filter.

  • match: Required. Boolean.

    • Set to "True" to include social contacts with similar content in campaigns where the filter is applied.

    • Set to "False" to exclude social contacts with similar content in campaigns where the filter is applied.

Example XML request payload using socialContact:

<TrainingRequest>
	<socialContact>
   https://[ServerIP]:[Port]/ccp-webapp/ccp/socialcontact/
   B83B18F4100001292B3D088D0A568DDE
 </socialContact>
	<match>True</match>
</TrainingRequest>

Example XML request payload using document:

<TrainingRequest>
	<document>This is very positive. I really like it. Performance was excellent. 
   Great product.</document>
	<match>True</match>
</TrainingRequest>

HTTPS response headers:

https/1.1 200 OK
Pragma: No-cache
Cache-Control: no-cache
Expires: Wed, 31 Dec 1969 19:00:00 EST
Set-Cookie: 
JSESSIONIDSSO=58AEE69D45227D9FE1704D18F9C72913; 
Path=/
Set-Cookie: 
JSESSIONID=98504C52667551FFF276F885628BC3B9; 
Path=/ccp-webapp
Content-Type: text/plain
Content-Length: 0
Date: Mon, 14 Jun 2010 14:13:09 GMT
Server: