Creating Bookmarks - ACS - Reference Guides

ACS Integration Guide

Product
ACS
AFS_Version
7.9
Category
Reference Guides
language
English
audience
public

To add a bookmark into a book or folder, a CKS user must use the POST method on the bookmark list resource relative to this book or this folder.

WADL file

Resource

Method

bookmark.wadl

/cks/instance/<service_id>-${Service_Status}/book/
{book_id}/
bookmark

POST

The following example shows how to create a bookmark in the book /cks/instance/<service_id>-${Service_Status}/book/13 under the folder /cks/instance/<service_id>-${Service_Status}/book/13/folder/28. The id of this new bookmark is 29 and its reference is /cks/instance/<service_id>-${Service_Status}/book/13/folder/28/bookmark/29.

The request line is:

POST /cks/instance/<service_id>-${Service_Status}/book/13/folder/28/bookmark?afs:login=login://aeinstein:albert@CKS/<service_id>-${Service_Status}

The request body is:

<result xsi:type="cks.ws.bookmark" xmlns="antidot:cks:input"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<description>This is bookmark</description>
<name>Bookmark of Albert</name>
<url>http://www.antidot.net</url>
</result>

The reply body is:

<value xsi:type="ws.response" xmlns="antidot:cks:output"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<result xsi:type="cks.ws.bookmark"
reference="/cks/instance/<service_id>-${Service_Status}/book/13/folder/28/bookmark/29">
<id>29</id>
<description>This is bookmark</description>
<name>Bookmark of Albert</name>
<url>http://www.antidot.net</url>
</result>
</value>