Skip to content

Support

support_rule_create

Write a delivery rule: where a survey should be shown (a URL match), on which devices, when (immediately, after a delay, or on the client’s own event) and how often.

Tool

support_rule_create

Write a delivery rule: where a survey should be shown (a URL match), on which devices, when (immediately, after a delay, or on the client’s own event) and how often.

Write a delivery rule: where a survey should be shown (a URL match), on which devices, when (immediately, after a delay, or on the client’s own event) and how often. Nothing here runs on this side — the rule is configuration a client’s own runtime reads back through the public edge and acts on. A rule reaches that edge only while its survey is published, so a rule may be written against a draft and simply waits

Behavior

HTTP
POST /support/rules

Arguments

NameTypeRequiredDescription
devicestringWhich devices this rule applies to (default any)
enabledbooleanWhether the rule is live. A rule is created enabled unless this says otherwise
triggerobjectWhen to show the survey once the page matches
surveyIdstringThe survey this rule delivers. It must belong to this product
urlMatchobjectWhich pages this rule applies to
frequencyobjectHow often the same person may see this survey
attributeConditionsarrayConditions on the visitor’s attributes. Omit for a rule that applies to everyone

Response

FieldTypeAlwaysDescription
idstringRule id
devicestringWhich devices the rule applies to. any is the rule that does not care and is the default
enabledbooleanWhether the rule is live
triggerobject
surveyIdstringThe survey this rule delivers
urlMatchobjectWhich pages match
createdAtstringISO-8601 creation timestamp
frequencyobject
updatedAtstringISO-8601 last-modification timestamp
attributeConditionsarrayConditions on the visitor’s attributes, ALL of which must hold

Try it

Write a delivery rule: where a survey should be shown (a URL match), on which devices, when (immediately, after a delay, or on the client’s own event) and how often.

When to use

Write a delivery rule: where a survey should be shown (a URL match), on which devices, when (immediately, after a delay, or on the client’s own event) and how often. Nothing here runs on this side — the rule is configuration a client’s own runtime reads back through the public edge and acts on. A rule reaches that edge only while its survey is published, so a rule may be written against a draft and simply waits

Example

Ask your agent something like this:

Write a delivery rule: where a survey should be shown (a URL match), on which devices, when (immediately, after a delay, or on the client’s own event) and how often.

The agent will invoke support_rule_create with these arguments:

{
  "trigger": "<trigger>",
  "surveyId": "<surveyId>",
  "urlMatch": "<urlMatch>",
  "frequency": "<frequency>"
}

Esc

Start typing to search the docs.

navigateselect