Publish a property
publish_propertyUse this when an authenticated user explicitly asks to publish a property publicly on PropFácil. This creates a public listing and is safe to retry with the same idempotencyKey.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | Mexican city or municipality where the property is located. | |
| price | Yes | Positive advertised price in the selected currency. | |
| state | No | Mexican state where the property is located, when known. | |
| title | Yes | Public listing title shown to prospective buyers or tenants. | |
| areaSqm | No | Property area in square meters. | |
| bedrooms | No | Number of bedrooms; use zero only when the property has none. | |
| currency | No | Currency used for the advertised price. | MXN |
| latitude | No | WGS84 latitude for the property location. | |
| bathrooms | No | Number of bathrooms, including fractional half-bath values when applicable. | |
| longitude | No | WGS84 longitude for the property location. | |
| description | Yes | Public, accurate description of the property. | |
| isCommercial | No | True for commercial real estate; false for residential real estate. | |
| idempotencyKey | Yes | Stable unique key for this publish request; reuse it when retrying. | |
| transactionType | Yes | Whether the property is offered for sale or lease. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| status | Yes | ||
| reasons | Yes | ||
| idempotentReplay | Yes |