---
title: "Bulk update cost centers"
method: PATCH
path: "/cost_centers/bulk_update"
tags: ["Cost centers"]
---

# Bulk update cost centers

`PATCH /cost_centers/bulk_update`

Archives or unarchives a list of cost centers in a single request. Returns the number of cost centers updated

## Headers

- `Authorization` string, required

## Request body

- object
  - `archive` boolean, required — Set to 'true' to archive the cost centers, or 'false' to unarchive them
  - `id_list` integer[], required — The IDs of the cost centers to archive or unarchive

## Response `200`

Returns '200 OK' and the number of cost centers updated.

- object
  - `updated_count` integer — The number of cost centers successfully updated

## Other responses

- `400` — Returns '400 Bad Request' when the request body is invalid.

---

[API](https://skmtc.net/perk/apis/travelperk-api-v1.md) · [All operations](https://skmtc.net/perk/apis/travelperk-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/perk/travelperk-api-v1/versions/6aa8bfa82514/schema)
