POST /accounts/{account_id}/cloudforce-one/rules/structured

Create a structured email rule.

Servers

Path parameters

Name Type Required Description
account_id String Yes

Cloudflare account ID.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
strings[] Array No
strings[].modifiers[] Array No
strings[].match_type String No

Valid values:

  • "text"
  • "hex"
  • "regex"

Default value: "text"

strings[].identifier String Yes
strings[].type String Yes

Valid values:

  • "string_match"
strings[].value String Yes
name String Yes
description String No
condition Object Yes

Nested condition groups support up to 10 levels of depth.

condition.operator String Yes

Valid values:

  • "and"
  • "or"
condition.conditions[] Array Yes
condition.type String Yes

Valid values:

  • "group"
enabled Boolean No

Default value: true

meta[] Array No
meta[].key String Yes
meta[].value Yes

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.