POST api/v2.0/ResourceLibrary/AddToFavorites?documentKey={documentKey}

Add the specified Document to the Authenticated User's Favorite List.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
documentKey

DocumentKey of a Document.

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

DocumentFavorite
NameDescriptionTypeAdditional information
ContactKey

globally unique identifier

None.

DocumentKey

globally unique identifier

None.

CreatedOn

date

None.

Response Formats

application/json, text/json

Sample:
{
  "ContactKey": "023e55e5-1841-4089-b63a-1831c1d01121",
  "DocumentKey": "353584e4-3bf5-42e1-a8be-2b373838661e",
  "CreatedOn": "2026-09-02T10:45:06.6248369Z"
}

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>023e55e5-1841-4089-b63a-1831c1d01121</ContactKey>
  <CreatedOn>2026-09-02T06:45:06.6248369-04:00</CreatedOn>
  <DocumentKey>353584e4-3bf5-42e1-a8be-2b373838661e</DocumentKey>
</DocumentFavorite>