Example request
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
}'Parameters
| Name | In | Required | Description |
|---|---|---|---|
| id | path | yes | — |
Request body
Optional
| Field | Type | Description |
|---|---|---|
| booking_account_number | integer | — |
| code | string | — |
| name | string | — |
Example request
{
"name": "string",
"code": "string",
"booking_account_number": 0
}Responses
200OK
ModelCostCenter
| Field | Type | Description |
|---|---|---|
| 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. |
Example 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