API DOCUMENTATION
UpdateProperty (pOST)
Updates the given property and returns the id.
Body params:
- id_property(string, required): The id of the property to update.
 - name(string, optional): The name of the property.
 - reference(string, optional): The property’s reference.
 - address(string, optional): The property’s address.
 - cadastral_number(string, optional): The property’s cadastral number.
 - id_commercialization_type(integer, required): The property’s commercialization type id. You can get the commercialization types in the section Property commercializacion types.
 - registration_date(date, required): The property’s registration date.
 - id_status(integer, required): The property’s status id. You can get the property statuses in the section Property status.
 - id_substatus(integer, required): The property’s substatus id. You can get the property substatuses in the section Property substatus.
 - captured_by(integer, optional): The user id who captured the property. You can get the users id with the call getUsers.
 - captured_by_2(integer, optional): The property origin id. This id can be obtained with the call getPropertyOrigins.
 - id_property_type(integer, optional): The property type id. This id can be found in the section Property Types.
 - id_property_subtype(integer, optional): The property type id. This id can be found in the section Property Subtypes.
 - id_owner(integer, optional): The property’s owner id. This id is a customer id, so it can be obtained with the call getCustomers.
 - price(decimal, optional): The property’s price.
 - sqm_to_publish(integer, optional): The property’s sqm to publish.
 - zip_code(integer, optional): The property’s zip code.
 - geo_fullname(integer, optional): The location of the property.
 - languages(array, optional):
- language(string, optional): The language used in the following fields. The language codes can be found with the query getLanguages.
 - name(string, optional): The property’s name.
 - short_description(string, optional): The property’s short description.
 - long_description(string, optional): The property’s long description.
 - seo_page_title(string, optional): The property’s SEO page title.
 - seo_alias(string, optional): The property’s SEO alias.
 - seo_meta(string, optional): The property’s SEO meta.
 - seo_keywords(string, optional): The property’s SEO keywords.
 - seo_url(string, optional): The property’s SEO url.
 - seo_canonical_url(string, optional): The property’s SEO canonical url.
 - whatsapp_message(string, optional): The property’s whatsapp message.
 - mail_message(string, optional): The property’s mail message.
 - mail_subject(string, optional): The property’s mail subject.
 - web_short_description(string, optional): The property’s web short description.
 - web_long_description(string, optional): The property’s web long description.
 - dossier_description(string, optional): The property’s dossier description.
 - clauses(string, optional): The property’s clauses.
 
 
Request examples
CURL:
curl --location 'https://movin.cloud/api/real-estate/update-property' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer SECRETOKEN'
Body example:{    "id_property":"“Mkd%24w8=" ,
    "name":"AASsada" ,
    "reference": "Ref309",
    "address": "iosdfisjdisdf",
    "id_commercialization_type": 1,
    "registration_date": "2024-07-22",
    "id_status": 1,
    "id_substatus": 1,
    "captured_by_2": "MjQkMzQ1Njg=",
    "id_property_type": 1,
    "id_property_subtype": 1,
    "price": 22.22,
    "languages": [
        {
            "language": "ca",
            "name": "Test",
            "short_description": "Test test test",
            "long_description": "Test test test test "
        },
        {
            "language": "es",
            "name": "Test",
            "short_description": "Aa",
            "long_description": "Aaa"
        }
    ]
}
Response Example
{
    "data": [
        "id_property": "MjckNzI4Mw==",
    ]
}
