---
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}`

## Request

- Base URL: `https://api-ext-sboxmeta.partners.spotnana.com`
- URL: `https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/{companyId}/cost-centers/{costCenterId}`
- Auth: HTTP bearer

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.dev/spotnana/apis/company-api.md) - [All operations](https://skmtc.dev/spotnana/apis/company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spotnana/apis/company-api/revisions/184a1b415751?raw)
