---
title: "Update a cost center"
method: PUT
path: "/os/v1/cost-centers/{uuid}"
tags: ["Cost Center", "Cost Center"]
---

# Update a cost center

`PUT /os/v1/cost-centers/{uuid}`

## Path parameters

- `uuid` string, required

## Request body

- UpdateCostCenterRequestDto
  - `name` string, required — cost center name
  - `description` string, required — cost center description

## Response `200`

The cost center has been successfully updated.

- object
  - `result` object, required — Result data
    - `uuid` string, uuid, required — cost center UUID
    - `name` string, required — cost center name
    - `externalCode` string, required — cost center external code
    - `description` string, required — cost center description
    - `company` CompanyDto, required
      - `id` string — Internal company ID
      - `uuid` string, uuid — company UUID
      - `centralCompanyId` string, uuid — central company UUID
      - `name` string — company name
  - `path` string, required — Request path
  - `duration` string, required — Request duration
  - `method` 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH', required — HTTP method used

## Other responses

- `400` — Bad Request - Invalid input data
- `401` — Unauthorized - Invalid or missing token
- `404` — Not Found - Cost center not found
- `500` — Internal Server Error - Unexpected failure

---

[API](https://skmtc.net/gupy/apis/gupy-public-api.md) · [All operations](https://skmtc.net/gupy/apis/gupy-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gupy/gupy-public-api/revisions/3f26defa2a42/schema)
