Create Collection
Create a collection of products. Call this in the same turn they ask for a new collection. Pass title. productIDs must already exist. mode manual uses those products. mode dynamic uses filters and ignores productIDs. Do not invent imageID. It is visible unless hiddenFromBrowse is true. Returns id and editorPath. App connections need the booking:write or inventory:write scope.
curl -X POST "https://dash.lockii.app/api/v1/collection" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string"
}'Authorization
x-api-keystringheaderAPI key from Settings → Integrations → API.
AuthorizationstringheaderThe same API key, or an OAuth access token, sent as Authorization: Bearer.
api_keystringqueryAPI key query parameter.
Body
descriptionstringRenter-facing description as plain text. Omit to leave it unchanged.
filtersobjectDynamic filters: category, location, price, and availability. Omit to leave filters unchanged.
hiddenFromBrowsebooleanTrue hides the collection from the website. False shows it. Omit to leave it unchanged.
imageIDstringExisting image id. Omit when you do not have one. Do not invent an id.
modeenum<string>manual includes only productIDs. dynamic includes products that match filters. dynamic ignores productIDs.
One of:dynamicmanualproductIDsstring[]Product ids from search_products or readWebsite, in display order. On update this replaces the manual list. Do not invent ids.
slugstringPublic URL segment. Omit to generate one from the title.
titlestringrequiredCollection title
Response
JSON result for this operation.
{}