Resource type: emailassignments
This can be used to link an email with address and / or estate data records. Analogous to the enterprise software, only one data record can be linked at a time. If no address or property ID is specified, the call returns success, but then no link is set.
Parameters:
emailidentity
STRING. MANDATORY. Identity under whose name the emails should be sent. Can only accept identities associated with the user in enterprisemessageid
STRING. MANDATORY. Unique message ID of the emailuid
INTEGER. MANDATORY. Unique identifier of the emailfolder
STRING. MANDATORY. Folder in which the email is locatedaddressid
(deprecated, useadressIds
instead)
INTEGER. OPTIONAL. ID of the address data record. If the adress is to be unlinked, “0” is to be transferredaddressIds
ARRAY. OPTIONAL. IDs of the address data records. If the array is empty, all links are removed. If there are one or more IDs in the array, these are stored as links in the e-mail. Existing links are overwritten.estateid
INTEGER. OPTIONAL. ID of the estate data record. If the estate is to be unlinked, “0” is to be transferred
Example:
{ "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:do", "resourceid": "", "identifier": "", "resourcetype": "emailassignments", "parameters": { "emailidentity": "max.mustermann@my-onoffice.de", "folder": "INBOX", "messageid": "<cron001-5f0277a7187e33.77784738-1556997217.100882@onoffice.de>", "uid": 1973, "addressIds": [601, 523], "estateid": 2649 } }
Response:
{ "status": { "code": 200, "errorcode": 0, "message": "OK" }, "response": { "results": [ { "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:do", "resourceid": "", "resourcetype": "emailassignments", "cacheable": false, "identifier": "", "data": { "meta": { "cntabsolute": null }, "records": [ { "id": 0, "type": "", "elements": { "success": "success" } } ] }, "status": { "errorcode": 0, "message": "OK" } } ] } }