Add a favourites list
Request
To add a new favourites list for an account, send a POST request to:
https://<host>:<port>/useractivityvault/v1/clientdata/account/{account}/favouriteslists
Headers
Authorization: Bearer
– bearer tokenContent-Type: application/json
Mandatory arguments
account
– the account ID (in both the path and the body)
Other arguments
pretty
– specifies that the output should be pretty-printed (that is, in human-readable format) (query parameter)expires
– the time (in seconds) after which the bookmark expires (query parameter). This is to save storage space. Default (from configuration): one year.userId
– not used in OPF 3deviceId
– the ID of the device (in body). Note that favourites lists are not device-specific.name
– a name for the favourites list (in body)creationDate
– bookmark creation date/time, in ISO 8601 format. If you do not specify this, UAV sets it automatically.modifiedDate
– bookmark last modified date/time, in ISO 8601 format. If you do not specify this, UAV sets it automatically.metadata
– any additional information that you need to attach to the bookmark, as key/value pairs (in body)tags
– optional tags (in body). You can attach as many as you need. Each tag is a string.
Example
A POST request with this payload adds a new favourites list for the specified account:
{
"account": "account1234"
}
Response
A successful request returns an HTTP 201 status.
A bad request returns an HTTP 400 status.
An unauthorised request returns an HTTP 401 status.
Example
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"account": "account1234",
"creationDate": "2021-01-22T14:35:39.991Z",
"modifiedDate": "2021-01-22T14:35:39.991Z",
"metadata": {}
"tags": []
}
See also
For full details of this API, see the User Activity Vault (UAV) API documentation.