v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
codespaces

Add users to Codespaces access for an organization

Codespaces for the specified users will be billed to the organization.

To use this endpoint, the access settings for the organization must be set to selected_members. For information on how to change this setting, see "Manage access control for organization codespaces."

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

post/orgs/{org}/codespaces/access/selected_users

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

selected_usernamesstring[] required

The usernames of the organization members and outside collaborators whose codespaces should be billed to the organization.

Response

Response when successfully modifying permissions.