Convert an organization member to outside collaborator
PUT
/orgs/{org}/outside_collaborators/{username}
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".
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://api.github.com/orgs//outside_collaborators/'
响应示例响应示例
202 - 示例 1
{}
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数
org
string
必需
username
string
必需
返回响应
🟢202User is getting converted asynchronously
application/json
Body
object{0}
🟢204User was converted
🟠403Forbidden if user is the last owner of the organization or not a member of the organization