Convert an organization member to outside collaborator
When an organization member is converted to an outside collaborator, they’ll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see “Converting an organization member to an outside collaborator”. Converting an organization member to an outside collaborator may be restricted by enterprise administrators. For more information, see “Enforcing repository management policies in your enterprise.”
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The organization name. The name is not case sensitive.
The handle for the GitHub user account.
Request Body
Section titled “ Request Body ”object
When set to true, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.
Examples
Status code 202, asynchronous request
{ "async": true}Status code 204, synchronous request
nullResponses
Section titled “ Responses ”User is getting converted asynchronously
object
Examples
nullUser was converted
Forbidden if user is the last owner of the organization, not a member of the organization, or if the enterprise enforces a policy for inviting outside collaborators. For more information, see “Enforcing repository management policies in your enterprise.”
Resource not found
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}