POST
/
v1
/
form_field_placements
/
{form_field_placement_id}
/
conditions
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": "40b7232e-5a5b-4039-9b55-f9b877a45211",
    "type": "form_field_placement_conditions",
    "attributes": {
      "form_field_placement_id": "9205dfaf-bf44-471a-9fc2-b526c69414b7",
      "conditioned": "placement",
      "position": 2,
      "form_field_id": "88c2b9f7-bf69-467a-afb9-9aeab4b9a3b8",
      "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.