---
title: "Update cost center"
method: PUT
path: "/v2/companies/{companyId}/cost-centers/{costCenterId}"
tags: ["Cost Centers"]
---

# Update cost center

`PUT /v2/companies/{companyId}/cost-centers/{costCenterId}`

This endpoint updates a cost center by ID.

## Request body

- CostCenter — Cost center details.
  - `id` CostCenterId, required
    - `id` string, required
  - `name` string, required
  - `externalId` string

## Response `204`

Updated Successfully

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — The specified resource was not found.

---

[API](https://skmtc.net/spotnana/apis/company-api.md) · [All operations](https://skmtc.net/spotnana/apis/company-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spotnana/company-api/revisions/36b1305ad44a/schema)
