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": "308e2fb0-7533-47ac-97c6-b57911889de7",
"DocumentKey": "7e344096-c653-4e89-92de-c7458f1106be",
"CreatedOn": "2026-01-15T23:12:30.9749101Z"
}
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>308e2fb0-7533-47ac-97c6-b57911889de7</ContactKey> <CreatedOn>2026-01-15T18:12:30.9749101-05:00</CreatedOn> <DocumentKey>7e344096-c653-4e89-92de-c7458f1106be</DocumentKey> </DocumentFavorite>