apicheats.dev Cheat sheet Raw .md
PUT

Try PUT /users/{username}/copilot-spaces/{space_number} — GitHub API

GitHub playground

Set a Copilot Space for a user

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

5 body fields
  • name · optional · string — The name of the Copilot Space.
  • description · optional · string — A description of the Copilot Space.
  • general_instructions · optional · string — General instructions for the Copilot Space.
  • base_role · optional · string — The base role that determines default permissions for the space. Changing this field requires admin permissions. - `no_access`: No default access (default) - `reader`: Makes the space publicly readable Note: User spaces do not support writer or admin base roles.
  • resources_attributes · optional · object[] — Resources to attach to the space.