Certain types of metadata objects can be marked as favorites for the currently logged in user. This applies currently for dashboards.
To make a dashboard a favorite you can make a POST request (no content type required) to a URL like this:
To remove a dashboard as a favorite you can make a DELETE request using the same URL as above.
The favorite status will appear as a boolean favorite field on the object (e.g. the dashboard) in the metadata response.