Skip to main content
PATCH
/
cost_centers
/
{cost_center_id}
Update a cost center
curl --request PATCH \
  --url https://api.sandbox.monite.com/v1/cost_centers/{cost_center_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-monite-entity-id: <x-monite-entity-id>' \
  --header 'x-monite-version: <x-monite-version>' \
  --data '
{
  "description": "<string>",
  "name": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "is_external": false,
  "name": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-monite-version
string<date>
required
x-monite-entity-id
string<uuid>
required

The ID of the entity that owns the requested resource.

Example:

"9d2b4c8f-2087-4738-ba91-7359683c49a4"

Path Parameters

cost_center_id
string<uuid>
required

Body

application/json

Schema for updating an existing cost center.

description
string

Description of the cost center

Maximum string length: 2048
name
string

Name of the cost center

Maximum string length: 500

Response

Successful Response

Represents a cost center retrieved from an accounting system.

id
string<uuid>
required
created_at
string<date-time>
required

The timestamp when the cost center was created.

updated_at
string<date-time>
required

The timestamp when the cost center was last updated.

description
string

Description of the cost center

is_external
boolean
default:false

Whether the cost center is from an external system

name
string