PUT /cabaprop/property
Updates specific fields of a listing already published on Cabaprop with POST /cabaprop/publish.
The server merges the fields you send with the last published Property Object — there is no need to resend the whole object, only the fields that changed. The merge happens at the first level of each object (for example, if you send price, it replaces the entire price object, not only the inner keys you included).
title, location and property_type/operation_type cannot be modified once the listing is published — unpublish and publish again if you need to change them (see Property Object > Notes).
| Resource information | |
|---|---|
| Authentication | Required (Mapaprop token + Cabaprop token) |
| HTTP Method | PUT |
| Response | JSON |
| Version | 1 |
Resource URL
https://property-api.mapaprop.com/cabaprop/property
Headers
| Header | Required | Description |
|---|---|---|
Authorization | yes | Bearer <token> — Mapaprop token |
X-Cabaprop-Token | yes | Cabaprop token obtained in POST /cabaprop/connect |
Content-Type | yes | application/json |
Parameters (body request)
| Key | Type | Required | Description |
|---|---|---|---|
propertyId | number/string | yes | Id of the already published property. |
custId | number/string | yes | Id of the customer/account; it must match the authenticated account. |
property | object | yes | Subset of the Property Object with the fields to change. |
Sample code
PUT /cabaprop/property
Host: property-api.mapaprop.com
Content-Type: application/json
Authorization: Bearer {access_token}
X-Cabaprop-Token: {cabaprop_token}
{
"propertyId": 188017,
"custId": 1,
"property": {
"price": { "currency": 1, "total": 240000 },
"description": "Precio actualizado. Casa de 4 ambientes con jardín y parrilla."
}
}
Response
{
"success": true,
"cabapropId": "68cae034f1a2b3c4d5e6f7a8"
}
| Field | Type | Description |
|---|---|---|
success | boolean | true if the update was applied. |
cabapropId | string | Id of the listing on Cabaprop. |
Errors
| Status | Body | Cause |
|---|---|---|
| 400 | {"error":"Invalid JSON body"} | The body is not valid JSON. |
| 403 | {"error":"custId does not match the authenticated customer"} | The custId in the body does not match the authenticated account. |
| 400 | {"error":"propertyId, custId and property are required"} | One of the required fields is missing. |
| 400 | {"error":"Cabaprop account is not connected (missing token)"} | The Cabaprop token is missing. |
| 404 | {"error":"Property is not published in Cabaprop — publish it first"} | The property has no live listing — use POST /cabaprop/publish first. |
| 401 | {"error":"Cabaprop authentication failed — reconnect the account"} | The Cabaprop token is invalid or expired. |
| 200 | {"success":false,"errorCode":"...","detail":"..."} | Cabaprop rejected the update because of invalid data. detail carries the portal's literal message. |
| 500 | {"error":"Error updating Cabaprop property","detail":"..."} | Unexpected error. |