Favorites

Idempotent upsert.

Idempotent upsert. Adds a favorite for the current user if none exists; returns the existing row otherwise. Identity is taken from the verified token, never the body.

put/api/v1/favorites

Request

  • Base URL: https://uniform.app
  • URL: https://uniform.app/api/v1/favorites
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Request body

projectIdstring required
entityType'entry' | 'composition' | 'component' | 'contentType' | 'blockType' | 'entryPattern' | 'componentPattern' | 'compositionPattern' | 'asset' required
entityIdstring required

Response

OK

idstring required
projectIdstring required
entityType'entry' | 'composition' | 'component' | 'contentType' | 'blockType' | 'entryPattern' | 'componentPattern' | 'compositionPattern' | 'asset' required
entityIdstring required
createdstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.