curl --request GET \
--url https://api.dataspike.io/api/v3/transmon/rules/list/{event_type} \
--header 'ds-api-token: <api-key>'{
"builtin_rules": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "limit price for new users",
"status": "active",
"event_type": "payment_pre",
"rank": 20,
"expression": "event.user_ds_registration == 0 && event.checkout_price > 1000",
"causes": [
"TST",
"HI_PR"
],
"action": "reject",
"created_at": "2023-07-18T15:32:13Z",
"updated_at": "2023-07-18T15:32:13Z"
}
],
"custom_rules": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "limit price for new users",
"status": "active",
"event_type": "payment_pre",
"rank": 20,
"expression": "event.user_ds_registration == 0 && event.checkout_price > 1000",
"causes": [
"TST",
"HI_PR"
],
"action": "reject",
"created_at": "2023-07-18T15:32:13Z",
"updated_at": "2023-07-18T15:32:13Z"
}
]
}List all existing rules for given
curl --request GET \
--url https://api.dataspike.io/api/v3/transmon/rules/list/{event_type} \
--header 'ds-api-token: <api-key>'{
"builtin_rules": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "limit price for new users",
"status": "active",
"event_type": "payment_pre",
"rank": 20,
"expression": "event.user_ds_registration == 0 && event.checkout_price > 1000",
"causes": [
"TST",
"HI_PR"
],
"action": "reject",
"created_at": "2023-07-18T15:32:13Z",
"updated_at": "2023-07-18T15:32:13Z"
}
],
"custom_rules": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "limit price for new users",
"status": "active",
"event_type": "payment_pre",
"rank": 20,
"expression": "event.user_ds_registration == 0 && event.checkout_price > 1000",
"causes": [
"TST",
"HI_PR"
],
"action": "reject",
"created_at": "2023-07-18T15:32:13Z",
"updated_at": "2023-07-18T15:32:13Z"
}
]
}