The handle of the app is 1.
1. Create the bookmark.
The client sends:
{
"jsonrpc": "2.0",
"id": 1,
"method": "CreateBookmark",
"handle": 1,
"params": [
{
"qInfo": {
"qId": "BM01",
"qType": "Bookmark"
},
"qBookmarkListDef": {
"qType": "Bookmark"
}
}
]
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"qReturn": {
"qType": "GenericBookmark",
"qHandle": 2
},
"qInfo": {
"qId": "BM01",
"qType": "Bookmark"
}
},
"change": [
1,
2
]
}
The bookmark is created and the handle is 2.
2. Remove the bookmark.
The client sends:
{
"jsonrpc": "2.0",
"id": 2,
"method": "DestroyBookmark",
"handle": 1,
"params": [
"BM01"
]
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"qSuccess": true
},
"close": [
2
]
}
The bookmark is removed.