{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Replaces an existing trusted domain in full. Unlike PATCH, every field is taken from the request body, so optional fields that are omitted are reset rather than left untouched. Use this when managing trusted domains declaratively.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/email-security_identifier","description":"Account identifier tag."},"trusted_domain_id":{"$ref":"#/definitions/email-security_TrustedDomainId"}},"required":["account_id","trusted_domain_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/email-security_CreateTrustedDomain"}},"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_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":"Replace a trusted email domain","id":"cloudflare.email_security_replace_trusted_domain","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","trusted_domain_id":"f174e90a-fafe-4643-bbbc-4a0ed4fc8415"},"body":{"pattern":"example.com","is_regex":false,"is_recent":true,"is_similarity":false}},"maxRequests":1,"summary":false}}