apicheats.dev Cheat sheet Raw .md
POST

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

GitHub playground

Add a collaborator to 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

3 body fields
  • actor_type · required · string — The type of actor (must be `User` for user-owned spaces; `Team` will be rejected).
  • actor_identifier · required · string — The username of the collaborator. The numeric user ID is also accepted.
  • role · required · string — The role to grant to the collaborator.