Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Set Notification Reply

PUT/notification/reply

Projects using chatbots usually have clients replying to messages and projects want to know which message was sent by the client. This endpoint allows us to store the replies on MongoDB and DHIS2.

...

The notification status will not change to replied.

...

Upon successful reply, a confirmation response will be returned. If the operation encounters an issue or the notification cannot be canceled, appropriate error messages will be provided.

...

Code Block
{
  "notifications": [
   {
          "notificationID": "",
          "project": "",
          "clientId": "",
          "msg": "",
          "channel": "",
          "to": "",
          "templateId": "",
          "templateParams": "",
          "notificationDate": "",
          "status": "replied",
          "replyText": "",
          "replyDate": ""
        }
  ]
}

...