POST
/
v1
/
form_field_placements
/
{form_field_placement_id}
/
conditions
Creates a Form Set Condition
curl --request POST \
  --url https://api.rootly.com/v1/form_field_placements/{form_field_placement_id}/conditions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "form_field_placement_conditions",
    "attributes": {
      "conditioned": "placement",
      "position": 123,
      "form_field_id": "<string>",
      "comparison": "equal",
      "values": [
        "<string>"
      ]
    }
  }
}'
{
  "data": {
    "id": "09ba87ac-c340-42cd-9054-6006f8eed048",
    "type": "form_field_placement_conditions",
    "attributes": {
      "form_field_placement_id": "ea36ffe8-5388-42b2-a2c1-6983a2d6da1d",
      "conditioned": "placement",
      "position": 2,
      "form_field_id": "f26f5080-adac-4116-8c04-ad0c5140c756",
      "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_field_placement_id
string
required

Body

application/vnd.api+json

Response

201
application/vnd.api+json

form_field_placement_condition created

The response is of type object.