Skip to navigation

Update a Malware Scanner global configuration

View as MarkdownOpen in Claude

Updates one Malware Scanner global configuration. Send only the fields you want to change.

  • schedule is replaced whole: when you send it, it carries every field its frequency needs (frequency, start_hour, timezone and the day its frequency asks for); when you leave it out, the stored one stays.
  • 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.
  • The stored premium state is what gates the add-on, as in “Create a Malware Scanner global configuration” and “Assign websites to a Malware Scanner global configuration”.

Body

All fields are optional and take the same values as in “Create a Malware Scanner global configuration”.

  • name (string, optional): the configuration’s name.
  • schedule (object, optional): frequency, start_hour, timezone and the day its frequency asks for.
  • extensions (array of strings, optional): file extensions skipped by every scan.
  • max_file_size (integer, optional): bytes.
  • default (boolean, optional): whether new websites receive it.

Errors

  • 403: the stored configuration is premium and the organization has not subscribed the add-on.
  • 422: schedule.frequency other than monthly on a basic configuration; tier is sent (a configuration’s tier cannot change after creation: create a new one instead); region or batch is sent.

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