How to use the API to create a new report
Last updated
{
"type": "string",
"value": "string"
} {
"type": "regex",
"value": "string"
} {
"type": "string",
"value": "products"
} [{
"enabled": true,
"type": "accept_all",
"scenario_actions": [
{
"type": "accept",
"order": 0
}
]
},
{
"enabled": true,
"type": "refuse_all",
"scenario_actions": [
{
"type": "refuse",
"order": 0
}
]
},
{
"enabled": true,
"type": "no_actions",
"scenario_actions": []
}
]
[{
"enabled": true,
"type": "accept_all",
"scenario_actions": [
{
"type": "accept",
"order": 0
}
]
},
{
"enabled": true,
"type": "refuse_all",
"scenario_actions": [
{
"type": "refuse",
"order": 0
}
]
},
{
"enabled": true,
"type": "no_actions",
"scenario_actions": []
}
]{
"enabled": true,
"selectors": {
"pathToForm": "string",
"usernameField": "string",
"passwordField": "string",
"submitButton": "string"
},
"credentials": {
"username": "string",
"password": "string"
}{
"enabled": true,
"selectors": {
"pathToForm": "login.mywebsite.com"
},
"credentials": {
"username": "my_username",
"password": "my_password"
}[
{
"name": "Didomi France",
"website": "https://www.didomi.io/",
"country": "fr",
"pages_count": 10,
"enabled": "true",
"filters":[{
"type": "string",
"value": "products"
}],
"schedule": "0 0 * * *",
"userAgent": "my_custom_user_agent",
"login":
{
"enabled": true,
"selectors":
{
"pathToForm": "login.mywebsite.com"
},
"credentials":
{
"username": "my_username",
"password": "my_password"
}
},
"scenarios":
[
{
"enabled": true,
"type": "accept_all",
"scenario_actions":
[
{
"type": "accept",
"order": 0
}
]
},
{
"enabled": true,
"type": "refuse_all",
"scenario_actions":
[
{
"type": "refuse",
"order": 0
}
]
},
{
"enabled": true,
"type": "no_actions",
"scenario_actions":
[]
}
]
}
]https://api.didomi.io/reports/compliances/properties?organization_id=<organization_id>