IBM Connections API - Adding Members to Wiki -
IBM Connections API - Adding Members to Wiki -
i've been trying add together members wiki no avail. here's link instructions on how so:
http://www-10.lotus.com/ldd/appdevwiki.nsf/xpdocviewer.xsp?lookupname=ibm+connections+4.5+api+documentation#action=opendocument&res_title=updating_a_wiki_ic45&content=pdcontent
basically, need retrieve wiki first using url:
connectionsurl/wikis/basic/api/wiki/{wiki-label}/entry
and append info there , send using set request, content-type: application/atom+xml. content passed should 1 below based on example:
<?xml version="1.0" encoding="utf-8"?> <entry xmlns="http://www.w3.org/2005/atom"> <id>ignore</id> <td:label xmlns:td="urn:ibm.com/td">lake champlain</td:label> <category term="wiki" scheme="tag:ibm.com,2006:td/type" label="wiki"> </category> <author> <name>bill jones</name> <snx:userid xmlns:snx="http://www.ibm.com/xmlns/prod/sn"> bf9117c0-f8f2-102c-97c4-ceb7f24c5708 </snx:userid> <email>bjones@us.example.com</email> </author> <td:sharedwith xmlns:td="urn:ibm.com/td"> <ca:member xmlns:ca="http://www.ibm.com/xmlns/prod/composite-applications/v1.0" ca:id="new_user_id" ca:type="user" ca:role="editor" > </ca:member> <ca:member xmlns:ca="http://www.ibm.com/xmlns/prod/composite-applications/v1.0" ca:id="anonymous-user" ca:type="virtual" ca:role="reader" > </ca:member> </td:sharedwith> <title type="text">long lake</title> <summary type="text"> modification none </summary> </entry>
i tried , maintain getting 400 bad request response:
<?xml version="1.0" encoding="utf-8" ?> <td:error> <td:errorcode>invalidrequest</td:errorcode> <td:errormessage>atom entry null</td:errormessage> </td:error>
try api - https://conserver.com/wikis/basic/api/wiki/{wiki_label}/members set on resource alter entries (i think type should atom/xml or atom+cat/xml
thanks
paul
ibm wiki ibm-connections
Comments
Post a Comment