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": "8d7abee4-4e28-4892-8417-c19ba31c8bdf",
  "DocumentKey": "729fa782-3f27-422c-985a-73acb6a50af7",
  "CreatedOn": "2026-01-29T10:03:37.6886083Z"
}

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>8d7abee4-4e28-4892-8417-c19ba31c8bdf</ContactKey>
  <CreatedOn>2026-01-29T05:03:37.6886083-05:00</CreatedOn>
  <DocumentKey>729fa782-3f27-422c-985a-73acb6a50af7</DocumentKey>
</DocumentFavorite>