---
title: "Update a cost center"
method: PATCH
path: "/cost_centers/{cost_center_id}"
tags: ["Cost centers"]
---

# Update a cost center

`PATCH /cost_centers/{cost_center_id}`

## Request

- Base URL: `https://api.sandbox.monite.com/v1`
- URL: `https://api.sandbox.monite.com/v1/cost_centers/{cost_center_id}`
- Auth: HTTP bearer

Update an existing cost center

## Path parameters

- `cost_center_id` string, required

## Headers

- `x-monite-version` string, required
- `x-monite-entity-id` string, required

## Request body

- object
  - `description` string: Description of the cost center
  - `name` string: Name of the cost center

## Response `200`

Successful Response

- AccountingCostCenterResponse: 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: Unused. Reserved for future use.
  - `name` string

## Other responses

- `400`: Bad Request
- `401`: The `Authorization` header is missing or contains an invalid or expired access token. See [Authentication](https://docs.monite.com/api/concepts/authentication) to learn how to authenticate API calls.
- `403`: The specified access token does not have permissions to perform this operation.
- `404`: A cost center with the specified ID was not found.
- `409`: Business logic error
- `422`: Validation Error
- `429`: API rate limit has been exceeded. Check the response headers for the rate limit information.

---

[API](https://skmtc.dev/monite/apis/monite-2.md) - [All operations](https://skmtc.dev/monite/apis/monite-2/llms.txt) - [OpenAPI document](https://skmtc.dev/monite/apis/monite-2/revisions/4299ccf95edb?raw)
