latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-141,4691,08313.4 MB

daeba3129b5f

billing

Add resources to a cost center

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. Organization owners can add non-team resources to cost centers associated with resources they administer.

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

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 add to the cost center.

organizationsstring[]

The organizations to add to the cost center.

repositoriesstring[]

The repositories to add to the cost center.

enterprise_teamsstring[]

The enterprise teams to add to the cost center.

Response

Response when adding resources to a cost center

messagestring