POST
/
accounting
/
cost-centres
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"
}

Authorizations

Authorization
string
header
required

Value for the Authorization header parameter.

Body

The new CostCentre resource
name
string
required

The name of the cost centre, which is displayed in the UI

Maximum length: 255
code
string
required

The code of the cost centre, which is used for exports

Maximum length: 255
type
enum<string>
required

The type of the cost centre, which is used for exports

Available options:
KOST1,
KOST2
status
any
required

The status of the cost centre

Possible values:

  • active: The cost centre is active and can be used and referenced
  • archived: The cost centre is archived and cannot be referenced anymore. It also disappears from the UI.

Response

201
application/json
CostCentre resource created
name
string
required

The name of the cost centre, which is displayed in the UI

Maximum length: 255
type
enum<string>
required

The type of the cost centre, which is used for exports

Available options:
KOST1,
KOST2
status
any
required

The status of the cost centre

Possible values:

  • active: The cost centre is active and can be used and referenced
  • archived: The cost centre is archived and cannot be referenced anymore. It also disappears from the UI.
id
string
code
string

The code of the cost centre, which is used for exports

createdAt
string

The date and time when the cost centre was created

updatedAt
string

The date and time when the cost centre was last updated