currentFilter to change a filter instead of building a new one; the description iswarnings, which the client has to show.failed comes back as 200 with a message - the manual filter path stays usable.timeZone as the caller's IANA zone. Date rules resolve their day boundaries in it, sofilterGraphQL is compiled by the same translator the manual path uses; clients should save{
"prompt": "Alle Kunden bei der Volkswagen AG",
"currentFilter": {
"groups": [
{
"rules": [
{
"column": "string",
"condition": "string",
"value": null
}
]
}
]
},
"timeZone": "Europe/Berlin"
}curl --location 'https://api.cobra.de/v1/crm/lists/people/ai-filter' \
--header 'X-Integration-Name: API Documentation' \
--header 'X-Integration-Provider: cobra GmbH' \
--header 'X-Cobra-TenantId: 12e39e53-ece1-4d8d-8958-e782de1dbef0' \
--header 'X-Integration-Contact: info@cobra.de' \
--header 'Accept-Language: de-DE' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "Alle Kunden bei der Volkswagen AG",
"currentFilter": {
"groups": [
{
"rules": [
{
"column": "string",
"condition": "string",
"value": null
}
]
}
]
},
"timeZone": "Europe/Berlin"
}'{
"data": {
"status": "ok",
"filter": {
"groups": [
{
"rules": [
{
"column": "string",
"condition": "string",
"value": null
}
]
}
]
},
"filterGraphQl": "where: { lifecycle: { some: { text: { _in: [\"Kunde\"] } } } }",
"explanation": "string",
"warnings": [
{
"kind": "missing",
"text": "Für einen Werbewiderspruch gibt es kein Filterfeld."
}
],
"matchCount": 890,
"matchCountBefore": 1240
},
"message": "string",
"metaData": {
"totalResults": 0,
"responseTimeStamp": "2019-08-24T14:15:22.123Z"
},
"statusCode": 0
}