# PUT /api/integration/github/repository/{id}

Authentication: no security requirement declared for this operation.

Parameters:

- `id` (path, string, required)
  Type: string

Request body: application/json (required)

Type: object

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

- `tenant` (optional)
  Type: object

- `tenantId` (optional)
  Type: string

- `organization` (required)
  Type: object

- `organizationId` (required)
  Type: string

- `sentTo` (optional)
  Type: string

- `hasSyncEnabled` (optional)
  Type: boolean

Responses:

- 200: 

## Examples

### cURL

```bash
curl -X PUT 'http://localhost:3000/api/integration/github/repository/string' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "hasSyncEnabled": true
}'
```

### JavaScript

```javascript
const body = `{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "hasSyncEnabled": true
}`;

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

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

### Python

```python
import requests

body = '''{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "hasSyncEnabled": true
}'''

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