Using this API you can update a cost center.

Method: PUT

EndPoint

https://app.fracttal.com/api/costs_center/:id

:id = Cost center Id

This id is the id parameter, within the web service (GET) Get Cost Centers

Input parameters

Body

Parameter

Type

Required

Description

description

Text

Yes

Cost center description

value

Text

Optional

Cost center value

Output parameters

Parameter

field type

Description

id

Whole

Cost center Id

value

Text

Cost center value

description

Text

Cost center description

Example:
Request: https://app.fracttal.com/api/costs_center/13747

{
"description": "110401456",
"value":"0001"
}

Answer :

{
"success": true,
"message": "200",
"data": {
"id": 13747,
"id_company": 1190,
"value": "0001",
"description": "110401456"
},
"total": 1
}
Did this answer your question?