# POST /api/integration/github/install

Authentication: no security requirement declared for this operation.

Request body: application/json (required)

Type: object

Schema: [GithubAppInstallDTO](https://sourcey-gauzy.pages.dev/api-reference/models/githubappinstalldto/index.md)

- `installation_id` (optional)
  Type: string

- `setup_action` (optional)
  Type: string

- `state` (required)
  Type: string

- `install_proof` (optional)
  Type: string

- `install_check` (optional)
  Type: string
  
  enum: ["no_code","not_entitled","unverifiable"]

Responses:

- 201: 

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/integration/github/install' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "installation_id": "string",
  "setup_action": "string",
  "state": "string",
  "install_proof": "string",
  "install_check": "no_code"
}'
```

### JavaScript

```javascript
const body = `{
  "installation_id": "string",
  "setup_action": "string",
  "state": "string",
  "install_proof": "string",
  "install_check": "no_code"
}`;

const response = await fetch('http://localhost:3000/api/integration/github/install', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body,
});

const data = await response.text();
```

### Python

```python
import requests

body = '''{
  "installation_id": "string",
  "setup_action": "string",
  "state": "string",
  "install_proof": "string",
  "install_check": "no_code"
}'''

response = requests.post(
    'http://localhost:3000/api/integration/github/install',
    data=body.encode('utf-8'),
    headers={
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
