Estates
Update estate
Update an estate's properties, including the ability to change its place association.
Key Features:
- Allows changing the place_id to move an estate to a different place
- Validates that the new place_id exists and belongs to the same tenant
- Returns a 404 error if the new place doesn't exist or belongs to another tenant
Update Behavior:
- Field absent: Existing value is preserved (no modification)
- Field present with null: Value is removed (set to NULL in database)
- Field present with value: Value is updated
Special Fields:
- place_id: Can be updated to change the estate's place association. The new place must exist and belong to the same tenant.
- number_of_room: Can be set to null to remove the value
Example: To move an estate to a different place, include place_id in the request body:
{
"place_id": "new-place-uuid-here"
}
put/estates/{id}
Request
- Base URL: https://api.faireplace.com/api
- URL: https://api.faireplace.com/api/estates/{id}
- Auth: HTTP bearer
Path parameters
idstring uuid required
The UUID of the estate to update
Request body
Example request
{
"name": "3-bedroom apartment - Rue de la Paix",
"place_id": "550e8400-e29b-41d4-a716-446655440000",
"fiscal_identifier": "1234567890123",
"rent_amount": 1200,
"rental_status": "RENTED"
}Response
OK - Estate updated successfully
Example response
{
"name": "3-bedroom apartment - Rue de la Paix",
"fiscal_identifier": "1234567890123",
"rent_amount": 1200,
"rental_status": "RENTED"
}Changes
No recorded changes to this operation across all 1 revision of this API.