---
title: "Add resources to a cost center"
method: POST
path: "/enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}/resource"
tags: ["billing"]
---

# Add resources to a cost center

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

Adds resources to a cost center.

The usage for the resources will be charged to the cost center's budget. Enterprise owners and billing managers can add any resource, and organization owners can add non-team resources to cost centers associated with resources they administer. A custom role holder with fine-grained write access to enterprise billing can also add resources. An installation access token for a GitHub App installed on the enterprise with write access to enterprise billing can add resources to any cost center in the enterprise.

## Path parameters

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

## Request body

- object
  - `users` string[] — The usernames of the users to add to the cost center.
  - `organizations` string[] — The organizations to add to the cost center.
  - `repositories` string[] — The repositories to add to the cost center.
  - `enterprise_teams` string[] — The enterprise teams to add to the cost center.

## Response `200`

Response when adding resources to a cost center

- object
  - `message` string
  - `reassigned_resources` object[], nullable
    - `resource_type` string — The type of resource that was reassigned.
    - `name` string — The name of the resource that was reassigned.
    - `previous_cost_center` string — The previous cost center of the resource.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `409` — Conflict
- `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/905703de9c0f/schema)
