---
title: "Update a cost center"
method: PATCH
path: "/enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}"
tags: ["billing"]
---

# Update a cost center

`PATCH /enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}`

Updates an existing cost center. Enterprise owners and billing managers can update any cost center. Organization owners can update cost centers associated with resources they administer.

## Path parameters

- `enterprise` string, required
- `cost_center_id` string, required

## Request body

- union — At least one of `name` or `ai_credit_pool_enabled` must be provided.
  - object
    - `name` string, required — The new name for the cost center
    - `ai_credit_pool_enabled` boolean — Whether the cost center draws from the AI credit pool. This can only be enabled for cost centers that contain only user or team resources. - `false` — no cap; the cost center draws from the shared enterprise pool. - `true` — the cost center is capped at an amount derived from its members' license entitlements.
  - object
    - `name` string — The new name for the cost center
    - `ai_credit_pool_enabled` boolean, required — Whether the cost center draws from the AI credit pool. This can only be enabled for cost centers that contain only user or team resources. - `false` — no cap; the cost center draws from the shared enterprise pool. - `true` — the cost center is capped at an amount derived from its members' license entitlements.

## Response `200`

Response when updating a cost center

- UpdateCostCenter
  - `id` string, required — ID of the cost center.
  - `name` string, required — Name of the cost center.
  - `azure_subscription` string, nullable — Azure subscription ID associated with the cost center. Only present for cost centers linked to Azure subscriptions.
  - `state` 'active' | 'deleted' — State of the cost center.
  - `resources` object[], required
    - `type` string, required — Type of the resource.
    - `name` string, required — Name of the resource.
  - `ai_credit_pool_enabled` boolean — Whether the cost center draws from the AI credit pool. This can only be enabled for cost centers that contain only user or team resources. - `false` — no cap; the cost center draws from the shared enterprise pool. - `true` — the cost center is capped at an amount derived from its members' license entitlements.
  - `ai_credit_pool_state` object — Read-only cap-budget projection for the cost center. Only present when the cost center draws from the AI credit pool.
    - `target_amount` number, nullable — The AI credit pool cap target amount, in AI Credits. Null when the cap budget has not been materialized yet.
    - `current_amount` number, nullable — The current-month applied amount against the AI credit pool cap, in AI Credits. Null when the cap budget has not been materialized yet.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Resource not found
- `409` — Conflict
- `422` — Validation failed, or the endpoint has been spammed.
- `500` — Internal Error
- `503` — Service unavailable

---

[API](https://skmtc.net/github/apis/enterprise-cloud.md) · [All operations](https://skmtc.net/github/apis/enterprise-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/enterprise-cloud/revisions/daeba3129b5f/schema)
