# Update spam settings

**Publié le** : 2026-05-08
**Catégorie** : Settings & Config

## `PUT /spam-settings`

**Update spam settings**

Updates spam protection settings. Configure honeypot (enabled by default),
minimum submission time (in seconds), and reCAPTCHA v3 (requires site/secret keys).

Required permissions: `spam.settings.update`

### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Unauthorized — invalid or missing API token |
| `403` | Forbidden — insufficient permissions |
| `422` | Validation error |


### Response Example

```json
{
  "data": {
    "honeypotEnabled": true,
    "minimumSubmissionTime": 5,
    "recaptchaEnabled": true,
    "recaptchaSiteKey": "6Le...",
    "recaptchaSecretKey": "6Le...",
    "recaptchaMinScore": 0.5
  }
}
```

---