remagicaDocs home
API referenceReferences

Save a reference

PUT
/references/bookmarks

Needs a key withreferences:write

Saves a reference for the workspace, or unsaves it.

Requires scope references: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.

Request Body

application/json
  1. body
category*string

A References modal tab: brandKits, moodboards, styles, colorPalettes, characters, elements, effects (image looks) or cameraAngles.

Value in"brandKits""moodboards""styles""colorPalettes""characters""elements""effects""cameraAngles""assets"
referenceId*string

A built-in's id, your own reference's id, library:<itemId>, or a brand kit's or moodboard's id.

Length1 <= length <= 200
saved*boolean

Save (true) or unsave (false).

Response Body

Done.

application/json
  1. response
category*string

A References modal tab: brandKits, moodboards, styles, colorPalettes, characters, elements, effects (image looks) or cameraAngles.

Value in"brandKits""moodboards""styles""colorPalettes""characters""elements""effects""cameraAngles""assets"
referenceId*string

A built-in's id, your own reference's id, library:<itemId>, or a brand kit's or moodboard's id.

Length1 <= length <= 200
saved*boolean

Save (true) or unsave (false).

Example Request
curl -X PUT 'https://api.remagica.com/api/v1/references/bookmarks' \  -H 'Content-Type: application/json' \  -d '{  "category": "brandKits",  "referenceId": "9f22853f-5b3d-4f60-8e2a-1d9c6b4f7e05",  "saved": true}'
Example Response
{  "category": "brandKits",  "referenceId": "9f22853f-5b3d-4f60-8e2a-1d9c6b4f7e05",  "saved": true}