Creates a new form_field_placement_condition from provided data
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": "91725641-4247-4a29-b899-815e53d1d992",
"type": "form_field_placement_conditions",
"attributes": {
"form_field_placement_id": "9a2cb685-e018-4cb7-92b8-1a5470771624",
"conditioned": "placement",
"position": 2,
"form_field_id": "c452109b-4784-481c-83a0-02ad3de12668",
"comparison": "equal",
"values": [
"test"
]
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
form_field_placement_condition created
The response is of type object
.
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": "91725641-4247-4a29-b899-815e53d1d992",
"type": "form_field_placement_conditions",
"attributes": {
"form_field_placement_id": "9a2cb685-e018-4cb7-92b8-1a5470771624",
"conditioned": "placement",
"position": 2,
"form_field_id": "c452109b-4784-481c-83a0-02ad3de12668",
"comparison": "equal",
"values": [
"test"
]
}
}
}