curl -X POST \
/accounting/cost-centres \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"name": "Cost Centre",
"code": "CC",
"type": "KOST1"
}'
{
"id": "ad8f1c9c-4f0a-4e1a-8b1a-9c4d9c4d9c4d",
"name": "Cost Centre",
"code": "CC",
"type": "KOST1",
"status": "<any>",
"createdAt": "2021-01-01T00:00:00+00:00",
"updatedAt": "2021-01-01T00:00:00+00:00"
}
Add a cost centre. A cost centre can be of type KOST1 or KOST2 and must have a unique code.
Required permissions:cost-centre:write
curl -X POST \
/accounting/cost-centres \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"name": "Cost Centre",
"code": "CC",
"type": "KOST1"
}'
{
"id": "ad8f1c9c-4f0a-4e1a-8b1a-9c4d9c4d9c4d",
"name": "Cost Centre",
"code": "CC",
"type": "KOST1",
"status": "<any>",
"createdAt": "2021-01-01T00:00:00+00:00",
"updatedAt": "2021-01-01T00:00:00+00:00"
}
Value for the Authorization header parameter.
The new CostCentre resource
CostCentre resource created
Was this page helpful?