Skip to content

Loading…

Update a property

Update a property without exposing its private CRM record.

PATCH/v1/properties/{property_id}

Requires the properties:write scope

On this page

Only supplied top-level fields change. pricing and characteristics merge supplied fields; location and area are complete replacement objects. features replaces the list. Only subtype can be cleared with null. A property must retain a holder: owner_id cannot be cleared. To update a legacy property without a holder, supply a valid owner_id with the changes.

When changing type or subtype, the resulting subtype must belong to the resulting type. Send both together when switching to a type with different subtype options; use the canonical subtype keys. Updates to unrelated fields preserve legacy subtype values.

This endpoint cannot replace image URLs or set publication directly. Use upload sessions and the publication endpoint. Updating a public property's gallery queues marked-image processing before it is made visible again.

If the property is already configured to publish to Idealista in Vestta, an update can queue synchronization with Idealista. A successful response confirms that the property was saved in Vestta. Check the property's Portales panel for the result of the synchronization.

Example request

curl -X PATCH "https://api.vestta.io/v1/properties/1" \
  -H "X-Api-Key: $VESTTA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Updated apartment title",
  "pricing": {
    "sale": 340000
  }
}'

Authorization

  • X-Api-Keystringheaderrequired

    Your API key, AC_LIVE_<key_id>.<secret>. Authorization: ApiKey <key> is also accepted.

Path parameters

  • property_idintegerrequired≥ 1

Request body

application/json · required

  • operationsarray of strings
  • typePropertyType
  • subtypePropertySubtype

    Canonical subtype key for the property type: apartamento: apartamento, atico, planta_baja, duplex, estudio; casa: adosado, unifamiliar, multifamiliar, rustica, chalet, villa; local: local_comercial; nave: industrial, warehouse, other; almacenaje: almacen, trastero; oficina: on_high, ground_floor; terreno: rustico, urbano, urbanizable, industrial, terciario, otros; aparcamiento: garaje, parking, amarre; edificio: hotel, edificio, apartahotel. Responses return a Spanish display label instead of this key.

  • titlestring1–300 chars
  • descriptionstring≤ 50000 chars
  • pricingPropertyPricing
  • locationPropertyLocation
  • areaPropertyArea
  • bedroomsinteger≥ 0≤ 1000
  • bathroomsinteger≥ 0≤ 1000
  • characteristicsPropertyCharacteristics
  • featuresarray of objects
  • owner_idinteger≥ 1
  • is_featuredboolean
  • statusstring

    One ofdisponiblereservadaretiradovendidaalquilada

Response

200 Successful response.

Example response
{
  "status": "ok",
  "id": 1355
}

Response fields

  • statusstring default: ok always ok
  • idintegerrequired

Errors

StatusWhen
401 UnauthorizedThe API key is missing, malformed, unknown, revoked or expired.
403 ForbiddenThe API key lacks the required scope, or the business plan does not include API access.
404 Not FoundThe resource does not exist in this business.
409 ConflictDuplicate contact or idempotency key reused with a different payload.
422 Unprocessable ContentA path parameter, query parameter or body field is invalid.
429 The API key reached its request limit. Wait for the number of seconds in `Retry-After` before retrying.
500 Internal Server ErrorUnexpected server error while processing the request.

Error bodies and how to handle each case: Errors.