{
"caption": "My inbox rule",
"mailboxCredentialId": "55e7437c-93a3-46c4-a95d-24c9bda9d603",
"folderId": "INBOX",
"searchFields": "From",
"matchingType": "AllMailsMustMatch",
"createPersonIfNotFound": true,
"cxmCredentialId": "aa9a9239-6bb6-4b06-be11-0b16be13504a",
"sourceCrmType": null,
"active": true,
"archiveAsUser": "johndoe",
"errorEMailAddress": null
}curl --location '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 'X-Integration-Contact: info@cobra.de' \
--header 'Content-Type: application/json' \
--data '{
"caption": "My inbox rule",
"mailboxCredentialId": "55e7437c-93a3-46c4-a95d-24c9bda9d603",
"folderId": "INBOX",
"searchFields": "From",
"matchingType": "AllMailsMustMatch",
"createPersonIfNotFound": true,
"cxmCredentialId": "aa9a9239-6bb6-4b06-be11-0b16be13504a",
"sourceCrmType": null,
"active": true,
"archiveAsUser": "johndoe",
"errorEMailAddress": null
}'{
"data": {
"id": "9f055705-fd2b-40df-8e73-bf93f3db1b70",
"caption": "My inbox rule",
"mailboxCredentialId": "357d9ebf-d8ef-4a98-aa7d-a9655911976d",
"active": false,
"folderId": "INBOX",
"cxmCredentialId": null,
"sourceCrmType": "CxmWebConnect",
"createPersonIfNotFound": false,
"searchFields": "Default",
"matchingType": "AllMailsMustMatch",
"archiveAsUser": null,
"errorEMailAddress": null
},
"message": null,
"metaData": null,
"statusCode": 201
}