Endpoint
PUT /orgs/:org/outside_collaborators/:username.
Docs
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.
Convert member to outsdie collaborator API documentation
Response
HTTP Status Code
204 No Content
Response if user is the last owner of the organization
HTTP Status Code
403 Forbidden
JSON payload
{
"message": "Cannot convert the last owner to an outside collaborator",
"documentation_url": "https://developer.github.com/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator"
}
Response if user is not a member of the organization
HTTP Status Code
403 Forbidden
{
"message": "<user> is not a member of the <organization> organization.",
"documentation_url": "https://developer.github.com/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator"
}
Endpoint
PUT /orgs/:org/outside_collaborators/:username.Docs
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.
Convert member to outsdie collaborator API documentation
Response
HTTP Status Code
204 No ContentResponse if user is the last owner of the organization
HTTP Status Code
403 ForbiddenJSON payload
{ "message": "Cannot convert the last owner to an outside collaborator", "documentation_url": "https://developer.github.com/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator" }Response if user is not a member of the organization
HTTP Status Code
403 Forbidden{ "message": "<user> is not a member of the <organization> organization.", "documentation_url": "https://developer.github.com/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator" }