To create new views and update existing views, use the /pathways/api/view interfaces.
POST /pathways/api/view
CSP-Session-Token: 1|1207244890|EBNGlMeU4zFYKJIFbhIavCVk4/U=
Accept-Language: en-us
ACCEPT: text/xml,application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<soc:PViewDetail xmlns:soc="http://social.bea.com/pathways">
    <members>PTPORTAL:1:200,PTPORTAL:1:1</members>
    <name>Customer View</name>
    <ownerId>PTPORTAL:1:1</ownerId>
    <published>true</published>
    <subscribers>PTPORTAL:1:201,PTPORTAL:1:1,PTPORTAL:2:201</subscribers>
</soc:PViewDetail>
The response confirms that the new view 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:PViewDetail xmlns:soc="http://social.bea.com/pathways">
    <created>2008-04-03T10:50:55.477-07:00</created>
    <id>8aa289731910767e01191569a5f30003</id>
    <lastModified>2008-04-03T10:50:55.507-07:00</lastModified>
    <members>PTPORTAL:1:200,PTPORTAL:1:1</members>
    <name>Customer View</name>
    <ownerId>PTPORTAL:1:1</ownerId>
    <published>true</published>
    <subscribers>PTPORTAL:2:201,PTPORTAL:1:201,PTPORTAL:1:1</subscribers>
</soc:PViewDetail>
PUT /pathways/api/view/8aa289731303557b0113086b1ece0003 CSP-Session-Token: 1|1207332050|KHt3F4KlgmlBuntcrEKQpFcQGq8= Accept-Language: en-us ACCEPT: text/xml,application/xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <soc:PViewDetail xmlns:soc="http://social.bea.com/pathways"> <members>PTPORTAL:1:203</members> <name>Marketing view</name> <published>false</published> <subscribers>PTPORTAL:1:203,PTPORTAL:1:204</subscribers> </soc:PViewDetail>If the update was successful, the response code will be HTTP 202 Accepted. As with creating a new view, the response also includes the details passed in the request.
DELETE /pathways/api/view/8aa289731910767e01191569a5f30003 CSP-Session-Token: 1|1207330830|loGCMTzUMaJMBW4w22ACHoLUH0Y= 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 view that was deleted, including the creation date.


 
				