Update a Malware Scanner global configuration
Updates one Malware Scanner global configuration. Send only the fields you want to change.
scheduleis replaced whole: when you send it, it carries every field its frequency needs (frequency,start_hour,timezoneand 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: truemakes it the configuration new websites receive and takes the mark off the previous one;default: falseclears 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,timezoneand 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.frequencyother thanmonthlyon a basic configuration;tieris sent (a configuration’s tier cannot change after creation: create a new one instead);regionorbatchis sent.
Authentication
AuthorizationBearer
Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.
Path parameters
preset_malware_scan
Request
This endpoint expects an object.
max_file_size
name
Response
200 - Malware scan configuration updated
data
jsonapi
Errors
422
Unprocessable Entity Error
