Zum Hauptinhalt springen
PATCH
/
accounting
/
cost-centres
/
{id}
Error
A valid request URL is required to generate request examples
{
  "name": "Cost Centre",
  "type": "KOST1",
  "status": "active",
  "id": "ad8f1c9c-4f0a-4e1a-8b1a-9c4d9c4d9c4d",
  "code": "CC",
  "createdAt": "2021-01-01T00:00:00+00:00",
  "updatedAt": "2021-01-01T00:00:00+00:00"
}

Autorisierungen

Authorization
string
header
erforderlich

Value for the Authorization header parameter.

Pfadparameter

id
string
erforderlich

CostCentre identifier

Body

The updated CostCentre resource

name
string
erforderlich

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

Maximum string length: 255
Beispiel:

"Cost Centre"

type
enum<string>
erforderlich

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

Verfügbare Optionen:
KOST1,
KOST2
Beispiel:

"KOST1"

status
any
Standard:active
erforderlich

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.
Beispiel:

"active"

Antwort

CostCentre resource updated

name
string
erforderlich

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

Maximum string length: 255
Beispiel:

"Cost Centre"

type
enum<string>
erforderlich

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

Verfügbare Optionen:
KOST1,
KOST2
Beispiel:

"KOST1"

status
any
Standard:active
erforderlich

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.
Beispiel:

"active"

id
string
Beispiel:

"ad8f1c9c-4f0a-4e1a-8b1a-9c4d9c4d9c4d"

code
string

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

Beispiel:

"CC"

createdAt
string<date-time>

The date and time when the cost centre was created

Beispiel:

"2021-01-01T00:00:00+00:00"

updatedAt
string<date-time>

The date and time when the cost centre was last updated

Beispiel:

"2021-01-01T00:00:00+00:00"