PATCH /api/propiedades/
Update an existing property’s information. This endpoint supports partial updates - you only need to include the fields you want to change. This endpoint requires admin authentication using HTTP Basic Auth.Request
The unique 6-character property identifier (e.g., “ZN1001”)
Country where the property is located (e.g., “Argentina”)
City where the property is located (e.g., “Tigre”)
Street address of the property (e.g., “Av. Cazón 123”)
Number of rooms in the property
Property size in square meters
Property price in local currency
Type of contract. Must be one of:
Alquiler (Rent) or Venta (Sale)Current status of the property. Must be one of:
Disponible (Available), Reservado (Reserved), Alquilado (Rented), Vendido (Sold)Optional description or additional details about the property
Example Request
Response
Indicates whether the operation was successful
Human-readable message describing the result
Error message describing what went wrong (returned on failure)
Example Response
Success (200)Status Codes
Property updated successfully
Invalid data or validation error in request body
Authentication required or credentials invalid
Property with the specified ID does not exist
Notes
- This is a partial update endpoint - you only need to include fields you want to change
- Fields not included in the request will remain unchanged
- The
codigo_idfield cannot be modified through this endpoint. If you include acodigo_idin the request body that differs from the URL parameter, the request will fail with a 400 error - All provided fields must pass validation according to the property schema
- Use the SQL
COALESCEfunction to preserve existing values for fields not included in the update