Update Product
Update a product. Pass only the fields you are changing. Include only fields you want to change; omit the rest. Empty strings, null, and 0 are ignored so they cannot wipe existing values. App connections need the inventory:write scope.
curl -X POST "https://dash.lockii.app/api/v1/product/{id}" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"description": "string",
"imageID": "string",
"additionalImageIDs": [
"string"
],
"pricePerHourCents": -9007199254740991,
"basePriceCents": -9007199254740991,
"pricingTemplateID": "string",
"categoryID": "string",
"companyID": "string",
"updatedAt": 0,
"archived": true,
"hiddenFromBrowse": true,
"slug": "string",
"sortOrder": 0,
"siteTemplatePageID": "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.
Parameters
idstringpathrequiredProduct ID
Body
namestringProduct name Omit to leave unchanged.
descriptionstringRenter-facing description Omit to leave unchanged.
imageIDstringPrimary image ID Omit to leave unchanged.
additionalImageIDsstring[] | nullExtra gallery image IDs Omit to leave unchanged.
pricePerHourCentsintegerHourly price in cents Omit to leave unchanged.
basePriceCentsintegerBase/daily price in cents Omit to leave unchanged.
pricingTemplateIDstring | nullPricing template ID for tiers. Omit on updates unless changing pricing. Omit to leave unchanged.
categoryIDstring | nullCategory ID. Omit on updates unless changing category. Omit to leave unchanged.
companyIDstringOmit to leave unchanged.
updatedAtnumberOmit to leave unchanged.
archivedbooleanOmit to leave unchanged.
hiddenFromBrowsebooleanOmit to leave unchanged.
slugstring | nullOmit to leave unchanged.
sortOrdernumber | nullOmit to leave unchanged.
siteTemplatePageIDstring | nullWebsite product template page. Null uses the default. Omit to leave unchanged.
Response
JSON result for this operation.
{}