billing

Remove resources from a cost center

Changed on

Remove resources from a cost center.

The usage for the resources will no longer be charged to the cost center's budget. Enterprise owners and billing managers can remove any resource, and organization owners can remove non-team resources from cost centers associated with resources they administer. A custom role holder with fine-grained write access to enterprise billing can remove users and any organizations or repositories they administer; only enterprise owners and billing managers can remove enterprise teams. An installation access token for a GitHub App installed on the enterprise with write access to enterprise billing can remove users from any cost center in the enterprise.

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

Request

  • Base URL
    https://api.github.com
  • URL
    https://api.github.com/enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}/resource
  • Auth
    none declared

Path parameters

enterprisestring required

The slug version of the enterprise name.

cost_center_idstring required

The ID corresponding to the cost center.

Request body

usersstring[]

The usernames of the users to remove from the cost center.

organizationsstring[]

The organizations to remove from the cost center.

repositoriesstring[]

The repositories to remove from the cost center.

enterprise_teamsstring[]

The enterprise teams to remove from the cost center.

Response

Response when removing resources from a cost center

messagestring

Changes