Create a feature rule version

Creates a feature rule version.

Request
path Parameters
featureRuleId
required
string

Unique Feature Rule identifier

Request Body schema: application/json
label
string
description
string
requirements_script
string
action_script
string
script_type
string
graph_state
string
editing_mode
string
Responses
200

OK

201

Created

400

Bad Request

post/v3/feature-rules/{featureRuleId}/versions
Request samples
application/json
{
  • "label": "Test feature",
  • "description": "Test feature",
  • "requirements_script": "return []",
  • "action_script": "return \"this is a test\"",
  • "script_type": "javascript",
  • "graph_state": "{\"property1\": \"value1\"}",
  • "editing_mode": "manual"
}
Response samples
application/json
{}