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": "f98e233e-5b1c-4f58-a7a1-8f9a21412e09",
    "type": "form_set_conditions",
    "attributes": {
      "form_set_id": "7d263056-70ee-495c-9397-1930afd8cf32",
      "form_field_id": "b66c8727-812d-4d3f-a5ac-b88dc2790b68",
      "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.