Creates a new workflow form field condition from provided data
curl --request POST \
--url https://api.rootly.com/v1/workflows/{workflow_id}/form_field_conditions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "workflow_form_field_conditions",
"attributes": {
"workflow_id": "<string>",
"form_field_id": "<string>",
"incident_condition": "ANY",
"values": [
"<string>"
],
"selected_catalog_entity_ids": [
"<string>"
],
"selected_functionality_ids": [
"<string>"
],
"selected_group_ids": [
"<string>"
],
"selected_option_ids": [
"<string>"
],
"selected_service_ids": [
"<string>"
],
"selected_user_ids": [
123
]
}
}
}'
{
"data": {
"id": "958523f6-fb46-4c00-8995-e27a4eabc487",
"type": "workflow_form_field_conditions",
"attributes": {
"workflow_id": "b8cbaf87-b9bf-4a17-a38d-0c7a6077498e",
"form_field_id": "50dcab67-bed1-439d-b7f2-d12b43b0db1b",
"incident_condition": "ANY",
"values": [],
"selected_group_ids": [],
"selected_option_ids": [],
"selected_service_ids": [],
"selected_functionality_ids": [],
"selected_user_ids": [],
"selected_catalog_entity_ids": []
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
workflow_form_field_condition created
The response is of type object
.
curl --request POST \
--url https://api.rootly.com/v1/workflows/{workflow_id}/form_field_conditions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "workflow_form_field_conditions",
"attributes": {
"workflow_id": "<string>",
"form_field_id": "<string>",
"incident_condition": "ANY",
"values": [
"<string>"
],
"selected_catalog_entity_ids": [
"<string>"
],
"selected_functionality_ids": [
"<string>"
],
"selected_group_ids": [
"<string>"
],
"selected_option_ids": [
"<string>"
],
"selected_service_ids": [
"<string>"
],
"selected_user_ids": [
123
]
}
}
}'
{
"data": {
"id": "958523f6-fb46-4c00-8995-e27a4eabc487",
"type": "workflow_form_field_conditions",
"attributes": {
"workflow_id": "b8cbaf87-b9bf-4a17-a38d-0c7a6077498e",
"form_field_id": "50dcab67-bed1-439d-b7f2-d12b43b0db1b",
"incident_condition": "ANY",
"values": [],
"selected_group_ids": [],
"selected_option_ids": [],
"selected_service_ids": [],
"selected_functionality_ids": [],
"selected_user_ids": [],
"selected_catalog_entity_ids": []
}
}
}