# Update Make.com integration settings for tenant

`POST /api/integration/make-com`

Authentication: no security requirement declared for this operation.

Request body: application/json (required)

Type: object

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

- `isEnabled` (required)
  Type: boolean
  
  Whether the Make.com integration is enabled
  
  Example:
  
  ```json
  true
  ```

- `webhookUrl` (optional)
  Type: string
  
  The webhook URL for Make.com integration
  
  Example:
  
  ```json
  "https://hook.make.com/your-webhook-path"
  ```

Responses:

- 200: Make.com settings updated successfully

- 404: Tenant ID not found in request context

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/integration/make-com' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "isEnabled": true,
  "webhookUrl": "https://hook.make.com/your-webhook-path"
}'
```

### JavaScript

```javascript
const body = `{
  "isEnabled": true,
  "webhookUrl": "https://hook.make.com/your-webhook-path"
}`;

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

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

### Python

```python
import requests

body = '''{
  "isEnabled": true,
  "webhookUrl": "https://hook.make.com/your-webhook-path"
}'''

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