{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"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.\n\nOAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"username":{"type":"string","description":"The handle for the GitHub user account."},"space_number":{"type":"integer","description":"The unique identifier of the Copilot Space."},"actor_type":{"type":"string","enum":["User","Team"],"description":"The type of actor (must be `User` for user-owned spaces; `Team` will be rejected)."},"actor_identifier":{"type":"string","description":"The username of the collaborator. The numeric user ID is also accepted."}},"required":["username","space_number","actor_type","actor_identifier"],"additionalProperties":false},"body":{"type":"object","required":["role"],"properties":{"role":{"type":"string","enum":["reader","writer","admin","no_access"],"description":"The new role to grant to the collaborator. Use `no_access` to remove the collaborator."}},"examples":[{"role":"admin"}]}},"required":["path","body"],"additionalProperties":false},"name":"Set a collaborator role for a Copilot Space for a user","id":"github.copilot-spaces.update-collaborator-for-user","example":{"path":{"username":"example","space_number":1,"actor_type":"User","actor_identifier":"example"},"body":{"role":"admin"}},"maxRequests":1,"summary":false}}