{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Replaces the name, script tag and fallback verdict of a `worker` validator. Attachments to\ndetection entries are owned from the entry side and are not affected.","properties":{"path":{"type":"object","properties":{"account_id":{"type":"string"},"validator_id":{"type":"string","format":"uuid"}},"required":["account_id","validator_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/dlp_WorkerValidatorWrite"}},"required":["path","body"],"additionalProperties":false,"definitions":{"dlp_WorkerValidatorWrite":{"description":"The attributes of a worker validator.","type":"object","properties":{"default":{"allOf":[{"$ref":"#/definitions/dlp_WorkerDefault"}]},"name":{"description":"A name for this validator, at most 50 characters.","type":"string","examples":["Invoice scorer"]},"script_tag":{"description":"The public script tag of the customer's Worker that scores matches.","type":"string","examples":["0123456789abcdef0123456789abcdef"]}},"required":["name","script_tag"]},"dlp_WorkerDefault":{"oneOf":[{"type":"number"},{"enum":["veto"],"type":"string"}]}}},"name":"Update a worker validator","id":"cloudflare.dlp-validators-update-worker-validator","example":{"path":{"account_id":"example","validator_id":"00000000-0000-4000-8000-000000000000"},"body":{"name":"Invoice scorer","script_tag":"0123456789abcdef0123456789abcdef"}},"maxRequests":1,"summary":false}}