rondeezie - Hey TS team,Is there an equivalen...
Hey TS team,
Is there an equivalent API in v2 that allows you to mark / unmark favorites? Similar to
/callosum/v1/tspublic/v1/metadata/markunmarkfavoritefor
We use the v2 API for all our other interactions but I haven't been able to find how to set favorites programmatically. I did try just using the existing bearer token to mark favorites in the v2 version but it seems like that uses a completely different authentication method and potentially doesn't support bearer tokens.Solution:Jump to solution
hey @rondeezie
You can use the Update User v2 Api.
POST /api/rest/2.0/users/{user_identifier}/update
...
2 Replies
Solution
hey @rondeezie
You can use the Update User v2 Api.
POST /api/rest/2.0/users/{user_identifier}/update
request schema for the api to mark fav
{
"favorite_metadata": [
{
"identifier": "<object_guid>",
"type": "LIVEBOARD"
}
],
"operation": "ADD"
}
To mark unfav
{
"favorite_metadata": [
{
"identifier": "<object_guid>",
"type": "LIVEBOARD"
}
],
"operation": "REMOVE"
}
Awesome. thanks!