apicheats.dev Cheat sheet Raw .md
PUT

Try PUT /orgs/{org}/codespaces/access — GitHub API

GitHub playground

Manage access control for organization codespaces

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

2 body fields
  • visibility · required · string — Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization.
  • selected_usernames · optional · string[] — 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.