remagicaDocs home
API referenceLibrary

Favorite an item

PUT
/library/items/{itemId}/favorite

Needs a key withlibrary:write

Adds an item to your favorites.

Requires scope library:write.

Authorization

apiKey
headerx-api-key<token>

An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.

Path Parameters

itemId*string
Length1 <= length <= 128

Response Body

Favorited.

application/json
  1. response
favorite*boolean
itemId*string
Length1 <= length <= 128
Example Request
curl -X PUT 'https://api.remagica.com/api/v1/library/items/3f0c7a52-2f47-4a51-9b3e-9d7c0a1e6b21/favorite'
Example Response
{  "favorite": true,  "itemId": "59c47fe8-5b3d-4f60-8e2a-1d9c6b4f7e05"}