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": "5c73dfa8-9d38-4c34-b952-0046a305ea5f",
"DocumentKey": "95ff2d4e-b53a-45b2-83b6-ba6c0972307e",
"CreatedOn": "2026-04-30T14:16:34.4634333Z"
}
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>5c73dfa8-9d38-4c34-b952-0046a305ea5f</ContactKey> <CreatedOn>2026-04-30T10:16:34.4634333-04:00</CreatedOn> <DocumentKey>95ff2d4e-b53a-45b2-83b6-ba6c0972307e</DocumentKey> </DocumentFavorite>