Creates a new personal collection associated with the holder of the API key specified in the Authorization header, using the attributes specified in the request body.

Query parameters

None

Body parameters

NameTypeDescriptionRequired
bookmarks array true
display_name string true
description string false

Responses

CodeReturns
201 The personal collection model for the new personal collection.
430 Invalid request data

Example

This example creates a new empty personal collection called “Test.”

Request

$ curl -X POST 'https://public.enigma.com/api/personal-collections/' -H 'Authorization: Bearer <APIKEY>' -H 'Content-Type: application/json' \
    -d '{"display_name": "Test", "description": "Test", "bookmarks": []}'

Response

{
  "bookmarks": [],
  "description": "Test",
  "display_name": "Test",
  "id": "9dec848b-b342-40f3-918c-0ebfa36de08a",
  "published": true
}