Update malware scan configuration

View as MarkdownOpen in Claude
Edits one Malware Scanner global configuration. Send only what changes; answers **200** with the configuration document. **Body** (JSON), every field optional except that `tier` is never accepted here (**422** - a configuration's tier cannot change after creation; create a new one instead): `name`, `schedule`, `extensions`, `max_file_size`, `default` - the same fields and values as "Create malware scan configuration". - `schedule` is replaced whole: when it is sent it carries every field its frequency needs; when it is left out the stored one stays. Sending a `schedule.frequency` other than `monthly` on a basic configuration answers 422. - A new schedule reaches every website that uses the configuration and reschedules their next scan. - `default: true` makes it the configuration new websites receive and takes the mark off the previous one; `default: false` clears it. `region` and `batch` are never accepted here and answer 422. Requires a full-access token (read-only tokens answer 403). A configuration of another organization answers 404.

Authentication

AuthorizationBearer

Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.

Path parameters

preset_malware_scanstringRequired

Request

This endpoint expects an object.
max_file_sizedoubleOptional
namestringOptional

Response

200 - Malware scan configuration updated

dataobjectOptional
jsonapiobjectOptional

Errors

422
Unprocessable Entity Error