curl --request POST \
--url https://api.ai2fin.com/api/custom-rules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"entityType": "transaction",
"conditions": [
{
"field": "<string>",
"operator": "equals",
"value": "<string>",
"caseSensitive": true
}
],
"actions": [
{
"type": "set_category",
"value": "<string>"
}
],
"description": "<string>",
"priority": 0,
"autoExecute": false
}
'