Register policy from given template ids and events with custom config.
New policies are inactive by default.
Request
Add parameter in header X-DPT-AUTHORIZATION
Example:X-DPT-AUTHORIZATION: ********************
or
Body Params application/json
{
"name": "testName",
"policyTemplateId": "",
"applyingEventIds": [
""
],
"configuration": {},
"configurationId": "voting_configuration_id"
}
Request Code Samples
curl --location --request POST 'https://sandbox.privicore.com:9009/policy/register' \
--header 'X-DPT-AUTHORIZATION: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "testName",
"policyTemplateId": "",
"applyingEventIds": [
""
],
"configuration": {},
"configurationId": "voting_configuration_id"
}'
Responses
This response does not have a body.
Modified at 2025-12-02 10:52:26