{
"caption": "My inbox rule",
"mailboxCredentialId": "7b886b4a-97cc-4ccc-9547-4d67a1047127",
"folderId": "INBOX",
"searchFields": "From",
"matchingType": "AllMailsMustMatch",
"createPersonIfNotFound": true,
"cxmCredentialId": "68e4cccb-d7f2-4c8d-b0dd-52adb9a4c65c",
"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": "7b886b4a-97cc-4ccc-9547-4d67a1047127",
"folderId": "INBOX",
"searchFields": "From",
"matchingType": "AllMailsMustMatch",
"createPersonIfNotFound": true,
"cxmCredentialId": "68e4cccb-d7f2-4c8d-b0dd-52adb9a4c65c",
"sourceCrmType": null,
"active": true,
"archiveAsUser": "johndoe",
"errorEMailAddress": null
}'{
"data": {
"id": "2bb982b7-5f17-4c17-8ba5-b5a5d13185ae",
"caption": "My inbox rule",
"mailboxCredentialId": "f7f54b5b-baa7-44cb-bbb9-cb0ed89fc5c6",
"active": false,
"folderId": "INBOX",
"cxmCredentialId": null,
"sourceCrmType": "CxmWebConnect",
"createPersonIfNotFound": false,
"searchFields": "Default",
"matchingType": "AllMailsMustMatch",
"archiveAsUser": null,
"errorEMailAddress": null
},
"message": null,
"metaData": null,
"statusCode": 201
}