PUT /v1/properties/{id}
Update property
Updates property information. Only company owners and managers can update properties.
Request
PUT /v1/properties/{id}
Parameters
[
{
"schema": {
"type": "string"
},
"required": true,
"name": "id",
"in": "path"
}
]
Response
{
"200": {
"description": "Property updated successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"data": {
"type": "object",
"properties": {
"property": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"company_id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"address": {
"type": [
"string",
"null"
]
},
"latitude": {
"type": [
"number",
"null"
]
},
"longitude": {
"type": [
"number",
"null"
]
},
"property_type": {
"type": "string"
},
"timezone": {
"type": "string"
},
"currency": {
"type": "string"
},
"images": {
"type": "array",
"items": {
"type": "string"
}
},
"amenities": {
"type": "array",
"items": {
"type": "string"
}
},
"updated_at": {
"type": "string"
}
},
"required": [
"id",
"company_id",
"name",
"description",
"address",
"latitude",
"longitude",
"property_type",
"timezone",
"currency",
"images",
"amenities",
"updated_at"
]
}
},
"required": [
"property"
]
}
},
"required": [
"success",
"data"
]
}
}
}
},
"403": {
"description": "Access denied to update this property"
},
"404": {
"description": "Property not found"
}
}
View in Interactive API Reference