put
https://app.fracttal.com/api/third_parties_services/
Through this API, you can update the properties of a service associated with a third party.
Input Parameters
The following information must be sent in the request body.
Parameter | Type | Required | Description |
|---|---|---|---|
id_third_party_service | Integer | Yes | Third party service ID. Can be consulted here. (field id) |
service_description | Text | Yes | Service name |
cost | Integer | Yes | Service cost |
details | Text | Optional | Details of the service associated with the third party |
unit_code | Text | Optional | Service unit of measure code. This parameter must be sent when the service is not created in Fracttal |
unit_description | Text | Optional | Service unit of measure description. This parameter must be sent when the service is not created in Fracttal |
Output Parameters
| Parameter | Type | Description |
|---|---|---|
third_parties_name | Text | Third party name |
service_types_description | Text | Service type description |
cost | Integer | Cost of the service associated with the third party |
details | Text | Details of the service associated with the third party |
date_frequency | Text | Service frequency |
period_dates_description | Text | Service frequency description |
unit_frequency | Text | Service frequency unit |
units_description | Text | Service frequency unit description |
service_units_description | Text | Service frequency description |
description | Text | Service description |
third_parties_code | Text | Code of the third party associated with the service |
visible_to_all | Boolean | Indicates whether the service associated with the third party is visible to all or not. |
parent_description | Text | Description of the location-type asset to which the service is associated. |
Example:
Request: (PUT)https://app.fracttal.com/api/third_parties_services/2
{
"service_description":"ELEVATOR MAINTENANCE",
"cost":150000,
"details":"SERVICE INSERTED BY API"
}{
"success": true,
"message": "200",
"data": {
"id": 15254,
"id_company": 69,
"id_third_party": 377912,
"third_parties_name": "OTIS",
"id_service_type": 11153,
"service_types_description": "ELEVATOR MAINTENANCE",
"cost": 150000,
"id_unity": null,
"details": "SERVICE INSERTED BY API",
"date_frequency": null,
"id_period_date": null,
"period_dates_description": null,
"unit_frequency": null,
"id_unit_service": null,
"units_description": null,
"service_units_description": null,
"description": "OTIS",
"third_parties_code": "123424325",
"visible_to_all": false,
"parent_description": "// "
},
"total": 1
}