Command: customer.addActivityLog
Back to IndexAdds an activity log to a Customer
Body
messageTemplate | string The message template. Use {placeholders} for dynamic values (see https://messagetemplates.org/) |
dynamic | map of string to any value (optional) Dynamic properties to add to the log |
Examples
Add activity log to existing Customer
POST https://<hantera-hostname>/resources/actors/customer/d5559220-d7dc-4254-bdf8-625382d0794fAuthorization: Bearer <YOUR TOKEN>Content-Type: application/json
[{ "type": "applyCommands", "body": { "commands": [{ "type": "addActivityLog", "messageTemplate": "E-mail sent: {type}", "dynamic": { "type": "order-notification" } } ] }}]
curl -i -X POST \ https://<hantera-hostname>/resources/actors/customer/d5559220-d7dc-4254-bdf8-625382d0794f \ -H 'Authorization: Bearer <YOUR TOKEN>' \ -H 'Content-Type: application/json' \ -d '[{ "type": "applyCommands", "body": { "commands": [{ "type": "addActivityLog", "messageTemplate": "E-mail sent: {type}", "dynamic": { "type": "order-notification" } } ] }}]'
Invoke-WebRequest `-Uri "https://<hantera-hostname>/resources/actors/customer/d5559220-d7dc-4254-bdf8-625382d0794f" `-Method POST ` `-Headers @{Authorization="Bearer <YOUR TOKEN>"; 'Content-Type'="application/json"}-Body '[{ "type": "applyCommands", "body": { "commands": [{ "type": "addActivityLog", "messageTemplate": "E-mail sent: {type}", "dynamic": { "type": "order-notification" } } ] }}]'