{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Executes multiple trusted domain operations atomically: delete, partially update,\nreplace, and create trusted domain patterns in a single request. All four operation\narrays (deletes, patches, puts, posts) are required and executed in order.\nSend empty arrays for unused operations.\n","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/email-security_identifier","description":"Account identifier tag."}},"required":["account_id"],"additionalProperties":false},"body":{"type":"object","properties":{"deletes":{"description":"IDs of the trusted domain patterns to delete.","type":"array","items":{"properties":{"id":{"$ref":"#/definitions/email-security_TrustedDomainId"}},"required":["id"],"type":"object"},"maxItems":1000},"patches":{"description":"Partial updates to apply — each entry carries the pattern's ID and only the fields to change.","type":"array","items":{"allOf":[{"$ref":"#/definitions/email-security_UpdateTrustedDomain"},{"properties":{"id":{"allOf":[{"$ref":"#/definitions/email-security_TrustedDomainId"}]}},"required":["id"],"type":"object"}]},"maxItems":1000},"posts":{"description":"Trusted domain patterns to create.","type":"array","items":{"$ref":"#/definitions/email-security_CreateTrustedDomain"},"maxItems":1000},"puts":{"description":"Full replacements to apply — each entry carries the pattern's ID and every field of its new value.","type":"array","items":{"allOf":[{"$ref":"#/definitions/email-security_CreateTrustedDomain"},{"properties":{"id":{"allOf":[{"$ref":"#/definitions/email-security_TrustedDomainId"}]}},"required":["id"],"type":"object"}]},"maxItems":1000}},"required":["deletes","patches","puts","posts"]}},"required":["path","body"],"additionalProperties":false,"definitions":{"email-security_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"email-security_TrustedDomainId":{"description":"Trusted domain identifier.","type":"string","format":"uuid","examples":["f174e90a-fafe-4643-bbbc-4a0ed4fc8415"]},"email-security_UpdateTrustedDomain":{"description":"Update a trusted domain.","allOf":[{"$ref":"#/definitions/email-security_TrustedDomain"}],"minProperties":1},"email-security_CreateTrustedDomain":{"description":"Create a trusted domain.","allOf":[{"$ref":"#/definitions/email-security_TrustedDomain"}],"required":["pattern","is_regex","is_recent","is_similarity"]},"email-security_TrustedDomain":{"description":"A trusted email domain.","type":"object","properties":{"comments":{"type":["string","null"],"maxLength":1024,"examples":["Trusted partner domain"]},"is_recent":{"description":"Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.","type":"boolean","examples":[true]},"is_regex":{"description":"Whether `pattern` is a regular expression instead of a literal domain.","type":"boolean","examples":[false]},"is_similarity":{"description":"Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.","type":"boolean","examples":[false]},"pattern":{"description":"The domain pattern to trust, e.g. `example.com`.","type":"string","maxLength":1024,"minLength":1,"examples":["example.com"]}}}}},"name":"Batch trusted domain operations","id":"cloudflare.email_security_batch_trusted_domains","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"deletes":[],"patches":[],"puts":[],"posts":[]}},"maxRequests":1,"summary":false}}