Skip to main content
PUT
/
v1
/
documents
/
{documentId}
/
favorite
Favorite document
curl --request PUT \
  --url https://{instance}.omniapp.co/api/v1/documents/{documentId}/favorite \
  --header 'Authorization: Bearer <token>'
{
  "error": "<response_code>",
  "message": "<error_reason>"
}

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

documentId
string
required

The document identifier

Query Parameters

userId
string

Requires an Organization API key. Membership ID of the user to favorite the document on behalf of.

Personal Access Tokens (PATs) cannot use this parameter to act on behalf of other users.

Response

Document favorited successfully. No response body.

This response is returned whether the document was newly favorited or already in favorites.