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": "7f9c3a27-173a-43c4-ba89-a9be71681e99",
"DocumentKey": "5907cc4f-e2a1-42a3-86c7-25f8638ab898",
"CreatedOn": "2026-06-10T01:01:30.345143Z"
}
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>7f9c3a27-173a-43c4-ba89-a9be71681e99</ContactKey> <CreatedOn>2026-06-09T21:01:30.345143-04:00</CreatedOn> <DocumentKey>5907cc4f-e2a1-42a3-86c7-25f8638ab898</DocumentKey> </DocumentFavorite>