POST api/v2.0/ResourceLibrary/AddToFavorites?documentKey={documentKey}
Add the specified Document to the Authenticated User's Favorite List.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| documentKey |
DocumentKey of a Document. |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
DocumentFavorite| Name | Description | Type | Additional information |
|---|---|---|---|
| ContactKey | globally unique identifier |
None. |
|
| DocumentKey | globally unique identifier |
None. |
|
| CreatedOn | date |
None. |
Response Formats
application/json, text/json
Sample:
{
"ContactKey": "a6c13c5a-eff5-4381-a22c-cf41bab535da",
"DocumentKey": "a1577a09-4073-416f-b20e-0d089268be50",
"CreatedOn": "2026-07-16T11:29:57.561238Z"
}
application/xml, text/xml
Sample:
<DocumentFavorite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.ResourceLibrary"> <ContactKey>a6c13c5a-eff5-4381-a22c-cf41bab535da</ContactKey> <CreatedOn>2026-07-16T07:29:57.561238-04:00</CreatedOn> <DocumentKey>a1577a09-4073-416f-b20e-0d089268be50</DocumentKey> </DocumentFavorite>