API DOCUMENTATION
updateActivity (pOST)
Updates the given activity and returns the id.
Body params:
- id_activity(string, required): The id of the activity.
- activity_title (string, optional): The title of the activity. The default value is ’Nueva actividad’.
- activity_status (integer, optional): The activity status. You can check all the statuses at the end of the activities section. The default value is 1.
- activity_resolution (string, optional): The resolution of the activity. You can get the resolutions with the call getActivityResolutions. The default value is null.
- activity_type (string, optional): The type of the activity. You can get the types with the call getActivityTypes. The default value is null.
- activity_location (string, optional): The activity location. The default value is null.
- id_user (string, optional): The user id. The default value is null.
- start_date (date time, optional): Date when the activities start. The default value is null.
- end_date (date time, optional): Date when the activities end. The default value is null.
- customer_name (string, required): The name of the customer associated with the demand.
- customer_surnames (string, optional): The surnames of the customer associated with the demand. The default value is null.
- nif_cif (string, optional): The identification document of the customer. The default value is null.
- phone_number (string, optional): The phone number of the customer. The default value is null.
- whatsapp (boolean, optional): Boolean indicating if the customer wants to be contacted via WhatsApp. The default value is 0.
- language (string, optional): The language to communicate with the customer. The default value is ‘es’.
- email (string, optional): The email address of the customer. The default value is null.
- id_property (string, optional): The property id. The default value is null.
Request examples
CURL:
curl --location 'https://movin.cloud/api/real-estate/update-activity' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer SECRETOKEN'
Body example:
{
“id_activity”: “21@#$2a”,
"activity_title": "Actividad 1",
“activity_status”: 1,
“activity_resolution”: “Mgkf3%3”,
"activity_type": “Mkd30/w8”,
“activity_location”: “Barcelona”,
“id_user”: “1as@dad3!ad”,
"start_date": "2024-06-17 16:33:09",
"end_date": "2024-06-17 17:33:09”,
"customer_name": "Pep",
"customer_surnames": "Ferrer Ventura",
"nif_cif": "87473278F",
"phone_number": "7987987879",
"whatsapp": 1,
"language": ‘es’,
"email": "kajdas@sdsd.sd",
“id_property”: “132@~$1”
}
Response Example
{
“data”: [
“id_activity”: “Mkd3hy&38”
, “id_customer”: “Mhfd3hy$3==”
]
}