v56

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

Manage access control for organization codespaces

Sets which users can access codespaces in an organization. This is synonymous with granting or revoking codespaces access permissions for users according to the visibility. OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

put/orgs/{org}/codespaces/access

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

visibility'disabled' | 'selected_members' | 'all_members' | 'all_members_and_outside_collaborators' required

Which users can access codespaces in the organization. disabled means that no users can access codespaces in the organization.

selected_usernamesstring[]

The usernames of the organization members who should have access to codespaces in the organization. Required when visibility is selected_members. The provided list of usernames will replace any existing value.

Response

Response when successfully modifying permissions.