Publish Property
This endpoint is used to publish a property, must include the mentioned payload in the request. When publishing a property for the first time in a location that requires a permit number, the publication is deferred. The property is published only after the permit number is validated by the relevant registration authority.
The Publish Property API (
POST /api/v1/properties/{property_id}/products/attach) now supports posting to multiple portals (Bayut and Dubizzle) simultaneously when publishing a property.Portals Array Restriction: The
portalsarray can only be used when publishing a property.Mutual Exclusivity: You cannot use both
portalandportalsfields in the same requestProduct Auto-Default: If
productis not provided, it automatically defaults to publishing listing
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| property_id | string | Optional | 12570945 | |
| product | string | Optional | Name of the product | hot |
| portal | string | Optional | Portal of the product | bayut |
| portals | string | Optional | Array of portals , required when portal is not available | |
| message | string | Optional | Success Message |
curl --location 'https://api.bayut.com/v1/properties/12570945/products/attach' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"portal": "bayut"
}'{
"message": "Product attached successfully"
}