{
"caption": "My inbox rule",
"mailboxCredentialId": "2b89ffa1-d62e-41cc-b906-c6c4847c58ac",
"folderId": "INBOX",
"searchFields": "From",
"matchingType": "AllMailsMustMatch",
"createPersonIfNotFound": true,
"cxmCredentialId": "254e9a0a-b393-4723-850c-a2fd4380ee3f",
"active": true,
"archiveAsUser": "johndoe"
}
curl --location --request POST 'https://api.cobra.de/v1/eap/management/rules' \
--header 'X-Integration-Name: API Documentation' \
--header 'X-Integration-Provider: cobra GmbH' \
--header 'X-Cobra-TenantId: 12e39e53-ece1-4d8d-8958-e782de1dbef0' \
--header 'Content-Type: application/json' \
--data-raw '{
"caption": "My inbox rule",
"mailboxCredentialId": "2b89ffa1-d62e-41cc-b906-c6c4847c58ac",
"folderId": "INBOX",
"searchFields": "From",
"matchingType": "AllMailsMustMatch",
"createPersonIfNotFound": true,
"cxmCredentialId": "254e9a0a-b393-4723-850c-a2fd4380ee3f",
"active": true,
"archiveAsUser": "johndoe"
}'
{
"data": {
"id": "8a01d603-6543-4e3d-ae61-cddc1890456b",
"caption": "My inbox rule",
"mailboxCredentialId": "bf109ebb-2447-4308-89a1-c0ce38c1022b",
"active": false,
"folderId": "INBOX",
"cxmCredentialId": "00000000-0000-0000-0000-000000000000",
"createPersonIfNotFound": false,
"searchFields": "Default",
"matchingType": "AllMailsMustMatch",
"archiveAsUser": null
},
"message": null,
"metaData": null,
"statusCode": 201
}