---
title: "Update Cost-Center"
method: PUT
path: "/cleemy-procurement/api/costcenters/{id}"
tags: ["Cost-Centers"]
---

# Update Cost-Center

`PUT /cleemy-procurement/api/costcenters/{id}`

Update a cost-center.

## Request body

- CostCenter — Cost-center.
  - `id` integer
  - `name` string, required
  - `code` string, required
  - `ownerId` integer — ID of the user who will be the owner of the cost-center.
  - `owner` object — **Read-only.** Owner of the cost-center.
    - `id` integer
    - `href` string, uri
    - `name` string
    - `firstName` string
    - `lastName` string
    - `pictureHref` string, uri, nullable — **Read-only.** URL to this user picture image file.
  - `state` 'Disabled' | 'Enabled' — Disabled: the cost-center is disabled. Enabled: the cost-center is enabled.
  - `establishmentIds` integer[] — **Write-only.** IDs of the establishments to which the cost-center belongs."
  - `establishments` EstablishmentReference[] — **Read-only.** Establishments to which the cost-center belongs.
    - `id` integer
    - `name` string
    - `href` string, uri

## Response `200`

OK

- CostCenter — Cost-center.
  - `id` integer
  - `name` string, required
  - `code` string, required
  - `ownerId` integer — ID of the user who will be the owner of the cost-center.
  - `owner` object — **Read-only.** Owner of the cost-center.
    - `id` integer
    - `href` string, uri
    - `name` string
    - `firstName` string
    - `lastName` string
    - `pictureHref` string, uri, nullable — **Read-only.** URL to this user picture image file.
  - `state` 'Disabled' | 'Enabled' — Disabled: the cost-center is disabled. Enabled: the cost-center is enabled.
  - `establishmentIds` integer[] — **Write-only.** IDs of the establishments to which the cost-center belongs."
  - `establishments` EstablishmentReference[] — **Read-only.** Establishments to which the cost-center belongs.
    - `id` integer
    - `name` string
    - `href` string, uri

---

[API](https://skmtc.net/luccasoftware/apis/lucca-expenses.md) · [All operations](https://skmtc.net/luccasoftware/apis/lucca-expenses/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/luccasoftware/lucca-expenses/revisions/110f9897756c/schema)
