Through this API you can update the information of a third party created in Fracttal.
EndPoint
https://app.fracttal.com/api/third_parties/:code
Method PUT
Input Parameters of the Body
Parameter | Type of field | Required | Description |
name | Text | Yes | Third party name |
Text | Optional | ||
active | Text | Optional | Resource enabled. Send true or false |
code_parent_location | Text | Optional | Code of the asset in which the thirst party will be located. |
group_1 | Text | Optional | Classification description 1 |
group_2 | Text | Optional | Classification description 2 |
address | Text | Optional | Address |
city | Text | Optional | City |
state | Text | Optional | State |
zip_code | Text | Optional | Zip code |
country | Text | Optional | Country. |
latitude | Text | Optional | Latitude |
longitud | Text | Optional | Length. |
telephone | Text | Optional | Telephone. |
telephone_2 | Text | Optional | Telephone 2. |
sms | Text | Optional | SMS. |
fax | Text | Optional | Fax. |
web_page | Text | Optional | Web page. |
Note: To make the update of a third party, the body should only contain the fields to be updated and the mandatory fields.
Output Parameters
Parameter | Type of field | Description |
success | Boolean | True if the insert was successful or false otherwise |
message | Text | 200 if it was successful |
data | Text | Json with the information of the updated item |
Example:
Petition: https://app.fracttal.com/api/third_parties/fracttal_tercero
Body
{
"telephone_1":"56 2 2846 9175",
"web_page":"ayudax.fracttal.com"
}
Example Response:
{
"success": true,
"message": "200",
"data": {
"id": 7,
"id_company": 69,
"code": "fracttal_tercero",
"address": "San Pio X",
"email": "[email protected]",
"id_parent": null,
"id_group_1": null,
"id_group_2": null,
"active": true,
"name": "Fracttal SPA",
"zip_code": null,
"city": "Providencia",
"state": "Region Metropolitana",
"telephone_1": "56 2 2846 9175",
"telephone_2": null,
"fax": null,
"sms": null,
"id_custom_field_group": null,
"country": "Chile",
"is_changed": true,
"latitude": null,
"longitud": null,
"web_page": "ayudax.fracttal.com",
"id_third_party_import": null,
"id_parent_location": null
},
"total": 0
}