provider copilot-spaces PUT /users/{username}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}
@utdk/github /users/{username}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}
Set a collaborator role for a Copilot Space for a user
Updates the role of a collaborator for 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.updateCollaboratorForUser
PUT/users/{username}/copilot-spaces/{space_number}/collaborators/{actor_type}/{actor_identifier}
Updates the role of a collaborator for 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.

Input

required

The new role to grant to the collaborator. Use `no_access` to remove the collaborator.

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.updateCollaboratorForUser()