rondeezie - Hey TS team,Is there an equivalen...
# dev-help
r
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.
q
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": "", "type": "LIVEBOARD" } ], "operation": "ADD" } To mark unfav { "favorite_metadata": [ { "identifier": "", "type": "LIVEBOARD" } ], "operation": "REMOVE" }
r
Awesome. thanks!