Request Rules

Save a request rule

Saves a request rule.

put/v3/request-rules

Request

  • Base URL: https://demo.api.zephr.com
  • URL: https://demo.api.zephr.com/v3/request-rules
  • Auth: HTTP zephr-hmac-*

Request body

labelstring
requirements_scriptstring
action_scriptstring
script_typestring
graph_statestring
editing_modestring

Example request

{
  "label": "Test",
  "conditions": {
    "url_pattern": "^/forum",
    "method": "GET"
  },
  "requirements_script": "return []",
  "action_script": "return \"this is a test\"",
  "script_type": "javascript",
  "graph_state": "{\"property1\": \"value1\"}",
  "editing_mode": "manual"
}

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.