# Update Plugin Tenant Configuration

`PATCH /api/plugin-tenants/configuration`

Updates the configuration and preferences for a plugin tenant

Authentication: no security requirement declared for this operation.

Request body: application/json (required)

Type: object

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

- `pluginTenantId` (required)
  Type: string
  
  Plugin tenant ID

- `configuration` (optional)
  Type: object
  
  Configuration to merge/set

- `preferences` (optional)
  Type: object
  
  Preferences to merge/set

Responses:

- 200: Configuration updated successfully

Content type: application/json

Type: object

## Examples

### cURL

```bash
curl -X PATCH 'http://localhost:3000/api/plugin-tenants/configuration' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "pluginTenantId": "string",
  "configuration": {},
  "preferences": {}
}'
```

### JavaScript

```javascript
const body = `{
  "pluginTenantId": "string",
  "configuration": {},
  "preferences": {}
}`;

const response = await fetch('http://localhost:3000/api/plugin-tenants/configuration', {
  method: 'PATCH',
  headers: {
    'Content-Type': 'application/json',
  },
  body,
});

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

### Python

```python
import requests

body = '''{
  "pluginTenantId": "string",
  "configuration": {},
  "preferences": {}
}'''

response = requests.patch(
    'http://localhost:3000/api/plugin-tenants/configuration',
    data=body.encode('utf-8'),
    headers={
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
