Create a new collection.
curl -i -X POST \
https://v1.api.aana.ai/collections \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"collection_id": "my_collection",
"name": "string",
"description": "string",
"is_public": false
}'
{ "collection_id": "my_collection", "name": "string", "description": "string", "is_public": true, "thumbnails": [ "string" ] }
curl -i -X GET \
'https://v1.api.aana.ai/collections?public=false&return_thumbnails=false' \
-H 'x-api-key: YOUR_API_KEY_HERE'
{ "collections": [ { … } ] }
curl -i -X GET \
'https://v1.api.aana.ai/collections/my_collection?public=false&return_thumbnails=false' \
-H 'x-api-key: YOUR_API_KEY_HERE'
{ "collection_id": "my_collection", "name": "string", "description": "string", "is_public": true, "thumbnails": [ "string" ] }
curl -i -X DELETE \
https://v1.api.aana.ai/collections/my_collection \
-H 'x-api-key: YOUR_API_KEY_HERE'
{ "collection_id": "my_collection", "name": "string", "description": "string", "is_public": true, "thumbnails": [ "string" ] }
curl -i -X PUT \
https://v1.api.aana.ai/collections/my_collection \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"name": "string",
"description": "string",
"is_public": true
}'
{ "collection_id": "my_collection", "name": "string", "description": "string", "is_public": true, "thumbnails": [ "string" ] }
curl -i -X GET \
'https://v1.api.aana.ai/collections/my_collection/items?is_public=false&limit=10&offset=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-H 'x-api-key: YOUR_API_KEY_HERE'
{ "items": [ { … } ], "offset": "string" }
curl -i -X DELETE \
https://v1.api.aana.ai/collections/my_collection/items/123e4567-e89b-12d3-a456-426614174000 \
-H 'x-api-key: YOUR_API_KEY_HERE'
{ "collection_id": "my_collection", "media_id": "123e4567-e89b-12d3-a456-426614174000" }
curl https://v1.api.aana.ai/collection_suggestions \
--request POST \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'x-api-key: YOUR_API_KEY_HERE' \
--data 'body={"collection":"my_collection","search_public_collections":false,"search_language":"en"}'
{ "completion": {} }