v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
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. The authenticated user must be an enterprise admin in order to use this endpoint.

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