-
Hi, Is there a way to Send multiple field_values to create_rule method? Let's say I have a rule with multiple field_values, something like:
Documentation reference: https://www.falconpy.io/Service-Collections/Custom-IOA.html#create_rule |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 20 replies
-
Hi @oscardecr - In the current version (v1.2.11), this operation's In the interim, you can accomplish this by swapping over to leveraging the from falconpy import CustomIOA
ioa = CustomIOA(client_id=CLIENT_ID, client_secret=CLIENT_SECRET)
body_payload = {
"comment": "string",
"description": "string",
"name": "string",
"platform": "string",
"enabled": true,
"field_values": [
{
"final_value": "string",
"label": "string",
"name": "value1",
"type": "string",
"value": "string",
"values": [
{
"label": "string",
"value": "string"
}
]
},
{
"final_value": "string",
"label": "string",
"name": "value2",
"type": "string",
"value": "string",
"values": [
{
"label": "string",
"value": "string"
}
]
}
]
}
result = ioa.create_rule(body=body_payload)
print(result) Thank you for the question!! 😄 |
Beta Was this translation helpful? Give feedback.
Hi @oscardecr -
In the current version (v1.2.11), this operation's
field_values
keyword will only accept one dictionary of values. Expanding the payload handler to handle multiple dictionaries here is a solid enhancement ask, I'll get an issue created for it.In the interim, you can accomplish this by swapping over to leveraging the
body
keyword instead.