curl --request POST \
--url https://api.example.com/v1/policies \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"actions": [
{
"name": "<string>",
"parallel": true,
"priority": 123,
"settings": {}
}
],
"name": "<string>",
"telemetry": {
"enable_plugin_traces": true,
"enable_request_traces": true,
"exporters": [
{
"name": "<string>",
"settings": {}
}
],
"extra_params": {},
"header_mapping": {}
},
"trustlens": {
"app_id": "<string>",
"mapping": {
"input": {
"data_projection": {},
"extract_fields": {}
},
"output": {
"data_projection": {},
"extract_fields": {}
}
},
"team_id": "<string>",
"type": "<string>"
}
}
'{
"id": "<string>"
}Creates a new policy with actions, telemetry and TrustLens configuration
curl --request POST \
--url https://api.example.com/v1/policies \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"actions": [
{
"name": "<string>",
"parallel": true,
"priority": 123,
"settings": {}
}
],
"name": "<string>",
"telemetry": {
"enable_plugin_traces": true,
"enable_request_traces": true,
"exporters": [
{
"name": "<string>",
"settings": {}
}
],
"extra_params": {},
"header_mapping": {}
},
"trustlens": {
"app_id": "<string>",
"mapping": {
"input": {
"data_projection": {},
"extract_fields": {}
},
"output": {
"data_projection": {},
"extract_fields": {}
}
},
"team_id": "<string>",
"type": "<string>"
}
}
'{
"id": "<string>"
}