curl -L \
--request POST \
--url 'https://cloud-api.calyptia.com/v1/preview_processing_rule' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"language": "lua",
"actions": [
{
"kind": "add",
"description": "Sample action",
"enabled": true,
"selectors": [
{
"kind": "key",
"op": "equal",
"expr": "some_key"
}
],
"add": null,
"renameTo": "renamed",
"copyAs": "copied",
"maskWith": "masked"
}
],
"logs": [
[
1
]
]
}'