Please refer to the below steps on how to add the attachments for Notifications via API.
1. Please go to API - Add Attachment to Notification API and add the request ID and the attachment.
Screenshot for reference:
2. Then, you would need to find the attachment id. The attachment ID would be in the response body on the screenshot above.
3. Use that attachment ID and add a Notification.
Input data for adding a Notification via API with the attachment ID.
{
"notification": {
"subject": "Re: [Request ID :##31##] : Unable to fetch mails",
"description": "Description : I am unable to fetch mails from the mail server",
"to": [
{
},
],
"attachments": [ {
"name": "OAuth Credentials 1 (1).xlsx",
"id": "603"
}
],
"type": "reply"
}
}