Beispielanfrage
PATCH https://api.jupiter-erp.com/api/account/cost-centers/example-id
Code
curl -X PATCH 'https://api.jupiter-erp.com/api/account/cost-centers/example-id' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'X-Account-Uuid: YOUR_ACCOUNT_UUID' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"code": "string",
"booking_account_number": 0
}'Parameter
| Name | In | Pflicht | Beschreibung |
|---|---|---|---|
| id | path | ja | — |
Request Body
Optional
ModellUpdateCostCenterRequest
| Feld | Typ | Beschreibung |
|---|---|---|
| booking_account_number | integer | — |
| code | string | — |
| name | string | — |
Beispiel Request
{
"name": "string",
"code": "string",
"booking_account_number": 0
}Antworten
200OK
ModellCostCenter
| Feld | Typ | Beschreibung |
|---|---|---|
| booking_account_number | integer | — |
| code | string | — |
| created_at | string (date-time) | Creation timestamp in ISO 8601 format. |
| id* | integer | — |
| name* | string | — |
| updated_at | string (date-time) | Last update timestamp in ISO 8601 format. |
Beispiel Response
{
"id": 0,
"name": "string",
"code": "string",
"booking_account_number": 0,
"updated_at": "2025-01-14T13:51:15.000Z",
"created_at": "2025-01-14T13:51:15.000Z"
}CostCenters