Kalpana Docs
Resources

Add assets to a collection

Put one or more images in an image collection.

POST /api/assets/collections/{collectionId}/items

Requires assets:update.

FieldRequiredDescription
workspaceYesWorkspace slug or id.
assetIdsYesAt least one image id.
curl --request POST "https://app.kalpana.one/api/assets/collections/COLLECTION_ID/items" \
  --header "x-api-key: $KALPANA_API_KEY" \
  --header "content-type: application/json" \
  --data '{"workspace":"acme","assetIds":["ASSET_ID_1","ASSET_ID_2"]}'

Response

{ "success": true, "count": 2 }

count is the number of distinct ids you sent, including images already in the collection. Images stay in any other collections they belong to. To replace the collections of one image, use Set an asset's collections.

Errors

StatusCause
400assetIds is empty.
403Your role or key lacks assets:update.
404The collection, or an image in assetIds, is not in this workspace. Nothing is added.
Was this page helpful?

Updated 4 Nov 2026

On this page