To create new saved searches and modify existing saved searches, use the /pathways/api/savedsearch interfaces.
POST /pathways/api/savedsearch/new CSP-Session-Token: 1|1207329770|lKh5QpON3TQykMZ3a2x4ygh6Drs= Accept-Language: en-us ACCEPT: text/xml,application/xml <?xml version="1.0" encoding="UTF-8"?> <soc:PSavedSearchesList xmlns:soc="http://social.bea.com/pathways"> <savedSearch> <created>2007-10-09T16:58:16.593-07:00</created> <dailyEmail>true</dailyEmail> <ownerId>PTPORTAL:1:1</ownerId> <queryString>Gravity</queryString> <rssFormat>false</rssFormat> </savedSearch> </soc:PSavedSearchesList>The response confirms that the saved search was created and includes the details passed in the request.
HTTP/1.1 201 Created <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <soc:PSavedSearchesList xmlns:soc="http://social.bea.com/pathways"> <savedSearch> <created>2007-10-09T16:58:16.593-07:00</created> <dailyEmail>true</dailyEmail> <ownerId>PTPORTAL:1:1</ownerId> <queryString>Gravity</queryString> <rssFormat>false</rssFormat> </savedSearch> </soc:PSavedSearchesList>
PUT /pathways/api/savedsearch/8aa28973157e6c3901157e74bab70001 CSP-Session-Token: 1|1207331374|2/XMqYsZj6DwW5b220VWnB2o4S8= Accept-Language: en-us ACCEPT: text/xml,application/xml <?xml version="1.0" encoding="UTF-8"?> <soc:PSavedSearchesList xmlns:soc="http://social.bea.com/pathways"> <savedSearch> <created>2007-10-09T16:58:16.593-07:00</created> <dailyEmail>true</dailyEmail> <ownerId>PTPORTAL:1:1</ownerId> <queryString>New Search Target</queryString> <rssFormat>false</rssFormat> </savedSearch> </soc:PSavedSearchesList>If the update was successful, the response code will be HTTP 202 Accepted. As with creating a new saved search, the response also includes the details passed in the request.
DELETE /pathways/api/savedsearch/8aa28973191a6c1701191a6d903f0001 CSP-Session-Token: 1|1207330372|Ybc8ZmBc8vd7svvaa39CzZ5lp18= Accept-Language: en-us ACCEPT: text/xml,application/xmlIf the delete was successful, the response code will be HTTP 202 Accepted. The response also includes details about the saved search that was deleted, including the creation date.