POST
/
v1
/
form_sets
/
{form_set_id}
/
conditions
Creates a Form Set Condition
curl --request POST \
  --url https://api.rootly.com/v1/form_sets/{form_set_id}/conditions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "form_set_conditions",
    "attributes": {
      "form_field_id": "<string>",
      "comparison": "equal",
      "values": [
        "<string>"
      ]
    }
  }
}'
{
  "data": {
    "id": "5267de2a-19ed-4e39-bb0e-d902fcffb900",
    "type": "form_set_conditions",
    "attributes": {
      "form_set_id": "9f1103f7-5e1e-4c42-9404-34f86f9da73f",
      "form_field_id": "26b74574-bf34-4ebd-a885-94abc0f1cf0f",
      "comparison": "equal",
      "values": [
        "test"
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

form_set_id
string
required

Body

application/vnd.api+json

Response

201
application/vnd.api+json

form_set_condition created

The response is of type object.