# Convert an organization member to outside collaborator

From **GitHub v3 REST API**.

`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](https://docs.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)".

## Parameters

### `org`

- Location: path
- Required: true
- Type: `string`

### `username`

- Location: path
- Required: true
- Type: `string`

## Responses

### `202`

User is getting converted asynchronously

### `application/json`

- Type: `object`

```json
{"additionalProperties":false,"type":"object"}
```

### `204`

User was converted

### `403`

Forbidden if user is the last owner of the organization or not a member of the organization

### `404`

Resource not found

### `application/json`

- Type: `object`

Basic Error

```json
{"description":"Basic Error","properties":{"documentation_url":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"url":{"type":"string"}},"title":"Basic Error","type":"object"}
```

## Request examples

### cURL

```shell
curl --request PUT \
  --url {protocol}://{hostname}/api/v3/orgs/{org}/outside_collaborators/{username}
```
