---
title: "Update cost center"
method: PUT
path: "/cost-centers/{id}/"
tags: ["Cost Centers"]
---

# Update cost center

`PUT /cost-centers/{id}/`

Endpoint for updating an existing cost center.

## Path parameters

- `id` string, required

## Headers

- `X-Wafeq-Idempotency-Key` string

## Request body

- CostCenter
  - `created_ts` string, date-time, required — The timestamp in UTC when the cost center was created
  - `id` string, required — The unique identifier of the cost center.
  - `is_active` boolean, required — Indicates whether the cost center is currently active or inactive.
  - `legacy_id` string, required — [Deprecated] The legacy identifier of the cost center.
  - `modified_ts` string, date-time, required — The timestamp in UTC when the cost center was last modified
  - `name_ar` string, required — The name of the cost center in Arabic, limited to 200 characters.
  - `name_en` string, required — The name of the cost center in English, limited to 200 characters.

## Response `200`

- CostCenter
  - `created_ts` string, date-time, required — The timestamp in UTC when the cost center was created
  - `id` string, required — The unique identifier of the cost center.
  - `is_active` boolean, required — Indicates whether the cost center is currently active or inactive.
  - `legacy_id` string, required — [Deprecated] The legacy identifier of the cost center.
  - `modified_ts` string, date-time, required — The timestamp in UTC when the cost center was last modified
  - `name_ar` string, required — The name of the cost center in Arabic, limited to 200 characters.
  - `name_en` string, required — The name of the cost center in English, limited to 200 characters.

---

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