{
"caption": "My inbox rule",
"mailboxCredentialId": "9683407c-0243-49b6-9920-c382796a0401",
"folderId": "INBOX",
"searchFields": "From",
"matchingType": "AllMailsMustMatch",
"createPersonIfNotFound": true,
"cxmCredentialId": "56b37150-9d26-4906-b408-1d8424488897",
"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": "9683407c-0243-49b6-9920-c382796a0401",
"folderId": "INBOX",
"searchFields": "From",
"matchingType": "AllMailsMustMatch",
"createPersonIfNotFound": true,
"cxmCredentialId": "56b37150-9d26-4906-b408-1d8424488897",
"sourceCrmType": null,
"active": true,
"archiveAsUser": "johndoe",
"errorEMailAddress": null
}'{
"data": {
"id": "f5d273c6-02af-49f5-b810-e34fd19493cb",
"caption": "My inbox rule",
"mailboxCredentialId": "3a888758-d089-4d19-ab00-50ee5abc3c48",
"active": false,
"folderId": "INBOX",
"cxmCredentialId": null,
"sourceCrmType": "CxmWebConnect",
"createPersonIfNotFound": false,
"searchFields": "Default",
"matchingType": "AllMailsMustMatch",
"archiveAsUser": null,
"errorEMailAddress": null
},
"message": null,
"metaData": null,
"statusCode": 201
}