billing

Delete a cost center

Archives a cost center by ID. Enterprise owners and billing managers can archive any cost center, and organization owners can archive cost centers associated with resources they administer. A custom role holder with fine-grained write access to enterprise billing can also archive cost centers. An installation access token for a GitHub App installed on the enterprise with write access to enterprise billing can archive any cost center in the enterprise.

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

Path parameters

enterprisestring required

The slug version of the enterprise name.

cost_center_idstring required

The ID corresponding to the cost center.

Response

Response when deleting a cost center

messagestring required

A message indicating the result of the deletion operation

idstring required

The unique identifier of the deleted cost center

namestring required

The name of the deleted cost center

costCenterState'CostCenterArchived' required

The state of the cost center after deletion

Changes

No recorded changes to this endpoint across all 62 revisions of this API.