---
title: "Create a new cost center"
method: POST
path: "/enterprises/{enterprise}/settings/billing/cost-centers"
tags: ["billing"]
---

# Create a new cost center

`POST /enterprises/{enterprise}/settings/billing/cost-centers`

Creates a new cost center for an enterprise. The authenticated user must be an enterprise admin.

## Path parameters

- `enterprise` string, required

## Request body

- object
  - `name` string, required — The name of the cost center (max length 255 characters)

## Response `200`

Cost center created successfully

- object
  - `id` string — Unique identifier for the cost center
  - `name` string — 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[] — List of resources assigned to this cost center
    - `type` string — Type of resource (User, Org, or Repo)
    - `name` string — Name/login of the resource

## Other responses

- `400` — Bad request
- `409` — Conflict
- `500` — Internal server error

---

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