ditto
ditto copied to clipboard
Incorrect template for sudo modifyPolicy piggybackCommand body
The piggyback command for modifying a policy template is not correct. The policyId must be inside the policy section
{
"targetActorSelection": "/system/sharding/policy",
"headers": {
"aggregate": false,
"is-group-topic": false,
"ditto-sudo": true
},
"piggybackCommand": {
"type": "policies.commands:modifyPolicy",
"policyId": "{{policy.id}}",
"policy": {
"entries": {}
}
}
}
must be
{
"targetActorSelection": "/system/sharding/policy",
"headers": {
"aggregate": false,
"is-group-topic": false,
"ditto-sudo": true
},
"piggybackCommand": {
"type": "policies.commands:modifyPolicy",
"policy": {
"policyId": "{{policy.id}}",
"entries": {}
}
}
}