Publish or unpublish
Set desired visibility and generate protected public images.
/v1/properties/{property_id}/publicationRequires the properties:publish scope
Send {"published": true} to publish. The response is 202 Accepted, with Location and Retry-After: 2. Follow publication status until published is true. A property remains private while processing or after an error.
Send {"published": false} to remove it from the catalogue immediately (200). A pending worker cannot publish it afterwards. This does not guarantee removal of images already downloaded or cached by third parties.
Publication is an explicit choice, independent of commercial status. Save the property before publishing; external API requests also require type, operation, title and city. Each public photo is a permanent copy with an independent random ID. New photos are watermarked; existing photos grandfathered during migration may remain unmarked. No original path, filename or private storage URL is returned.
Example request
curl -X PUT "https://api.vestta.app/v1/properties/1/publication" \
-H "X-Api-Key: $VESTTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"published": true
}'Authorization
X-Api-KeystringheaderrequiredYour API key,
AC_LIVE_<key_id>.<secret>.Authorization: ApiKey <key>is also accepted.
Path parameters
property_idintegerrequired≥ 1
Request body
application/json · required
publishedbooleanrequiredDesired visibility. Publishing prepares public copies before making the property public; new photos are watermarked.
Response
200 Successful response.
Response fields
statusstring default:okalwaysokdataPublicationStaterequired
Errors
Error bodies and how to handle each case: Errors.