provider copilot-spaces DELETE /users/{username}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}
@utdk/github /users/{username}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}
Remove a collaborator from a Copilot Space for a user
Removes a collaborator from a specific Copilot Space owned by a user. The authenticated user must be the owner of the space or have admin access to the space. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
username path required
The handle for the GitHub user account.
string
space_number path required
The unique identifier of the Copilot Space.
integer
actor_type path required
The type of actor (must be `User` for user-owned spaces; `Team` will be rejected).
enum: User, Team
actor_identifier path required
The username of the collaborator. The numeric user ID is also accepted.
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
copilotSpaces.removeCollaboratorForUser
DELETE/users/{username}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}
Removes a collaborator from a specific Copilot Space owned by a user. The authenticated user must be the owner of the space or have admin access to the space. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.

Parameters

required

The handle for the GitHub user account.

required

The unique identifier of the Copilot Space.

required

The type of actor (must be `User` for user-owned spaces; `Team` will be rejected).

required

The username of the collaborator. The numeric user ID is also accepted.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.copilotSpaces.removeCollaboratorForUser()