Assign websites to a malware scan configuration
Authentication
Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.
Path parameters
Request
Response
200 - Websites assigned, one skipped
Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.
200 - Websites assigned, one skipped
Assigns an explicit selection of websites to one Malware Scanner global configuration. Answers 200 with meta.status (applied when at least one website changed, skipped when none did), meta.updated and meta.skipped; the change is immediate, there is nothing to poll.
Body (JSON):
sites (array of website ids, required, 1 to 200).What happens to each website:
meta.skipped with a reason_code (ALREADY_APPLIED, PERMISSION_DENIED) and a message instead of failing the call.meta.updated entries carry site_id, site_name and site_preset_malware_scan_id, the id “Show malware scan service” and “Update malware scan service” take.
Assigning to a premium configuration answers 403 for an organization without the addon - the same gate that guards creating or editing one directly.
Requires a full-access token (read-only tokens answer 403). An id that is not a website answers 422.