# Update plugin setting and validate

`PUT /api/plugins/{pluginId}/settings/{id}`

Authentication: no security requirement declared for this operation.

Parameters:

- `pluginId` (path, string, uuid, required) - Plugin ID
  Type: string, uuid

- `id` (path, string, uuid, required) - Plugin setting ID
  Type: string, uuid

Responses:

- 200: Setting updated and validation result

Content type: application/json

Type: object

- `setting` (optional)
  Reference: [PluginSetting](https://sourcey-gauzy.pages.dev/api-reference/models/pluginsetting/index.md); Type: object

- `validation` (optional)
  Type: object
  
  - `valid` (optional)
    Type: boolean
  
  - `errors` (optional)
    Type: array
    
    Items:
      Type: string

## Examples

### cURL

```bash
curl -X PUT 'http://localhost:3000/api/plugins/550e8400-e29b-41d4-a716-446655440000/settings/550e8400-e29b-41d4-a716-446655440000'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/plugins/550e8400-e29b-41d4-a716-446655440000/settings/550e8400-e29b-41d4-a716-446655440000', {
  method: 'PUT',
});

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

### Python

```python
import requests

response = requests.put('http://localhost:3000/api/plugins/550e8400-e29b-41d4-a716-446655440000/settings/550e8400-e29b-41d4-a716-446655440000')
print(response.text)
```
