Delete all bookmarks created before or after a certain date for an account
Request
To delete all the bookmarks that were created before or after a certain date for an account, send a DELETE request to:
http://<host>:<port>/useractivityvault/v1/clientdata/account/{account}/bookmarks?modifiedDate.{gte|lte}={date-time}
Headers
Authorization: Bearer
– bearer tokenContent-Type: application/json
Mandatory arguments
account
– the ID of the accountgte|lte
:gte
– greater than or equal tolte
– less than or equal to
- date-time – the date/time in ISO 8601 format
Response
A successful request returns an HTTP 200 status.
A bad request returns an HTTP 400 status.
An unauthorised request returns an HTTP 401 status.
Example
The following DELETE request deletes all bookmarks for the account with an ID of 1888766 created after one second past midnight UTC on 22 December 2018:
http://<host>:<port>/useractivityvault/v1/clientdata/account/1888766/bookmarks?modifiedDate.gte=2018-12-22T00:00:01Z
The response will look like this (showing there were four bookmarks that were deleted):
{
"bookmarks": [],
"totalRecords": 4
}
See also
For full details of this API, see User Activity Vault (UAV) API documentation.