Bookmark

Handle creating bookmarks for the user. Bookmarks are in three tables and should be thought of as a tuple of (model, model-id) rather than a row in a table with an id. The DELETE takes the model and id because DELETE’s do not necessarily support request bodies. The POST is therefore shaped in this same manner. Since there are three underlying tables the id on the actual bookmark itself is not unique among “bookmarks” and is not a good identifier for using in the API.

DELETE /api/bookmark/:model/:id

Delete a bookmark. Will delete a bookmark assigned to the user making the request by model and id.

PARAMS:

  • model value must be one of: card, collection, dashboard.

  • id value must be an integer greater than zero.

GET /api/bookmark/

Fetch all bookmarks for the user.

POST /api/bookmark/:model/:id

Create a new bookmark for user.

PARAMS:

  • model value must be one of: card, collection, dashboard.

  • id value must be an integer greater than zero.

PUT /api/bookmark/ordering

Sets the order of bookmarks for user.

PARAMS:

  • orderings value must be an array. Each value must be a map with schema: ( item_id : value must be an integer greater than zero. type : value must be one of: card, collection, dashboard. )

« Back to API index

Read docs for other versions of Metabase.

Thanks for your feedback!

See something that needs fixing? Propose a change.