mohammed
(mohammed)
October 26, 2023, 8:13pm
1
Hi Team,
I’m trying to add a private note through the custom app to a ticket in Freshdesk. In order to notify the agent assigned to the ticket I’m adding the agent’s email to notify_email field.
The private note gets added to the ticket. But it does not trigger an email to the agent.
When creating a private note through UI it works to trigger the email but not through API.
https://support-help.freshdesk.com/api/v2/tickets/2/notes
{
"body": "Test",
"notify_emails": ["test@gmail.com"],
"incoming": true
}
Is there any field I’m missing here? Thanks in advance
mohammed
(mohammed)
November 1, 2023, 11:17pm
2
Hi Team,
Can someone help me with this please?
Anish
February 2, 2024, 12:48pm
4
Hi @mohammed ,
Greetings!
It seems that you have been passed the wrong attributes. Kindly try the curl URL below to test this out:
curl -v -u api_key:X -H "Content-Type: application/json" -X POST -d '{ "body":"Test", "private":true, "notify_emails":["test@gmail.com"] }' 'https://domain.freshdesk.com/api/v2/tickets/3/notes'
Instead of using “incoming,” use “private.” For more details, kindly check the URL attached below,
{
"body": "Test",
"notify_emails": ["test@gmail.com"],
"private": true
}
Api Documentation : Add note to a ticket
Thank you.
1 Like
Anish
February 4, 2024, 3:04pm
5
@mohammed , I hope the answers provided above clarify your question.
mohammed
(mohammed)
February 4, 2024, 3:42pm
6
Hello @Anish
Apologies for the late reply. Thanks for your information.
Yes, it worked for me.
Thank you
1 Like
Anish
February 4, 2024, 3:57pm
7
Hi @mohammed
I’m happy for that. If your query has been resolved, kindly mark it as a solution so it can be useful to others with the same questions.
1 Like
system
(system)
Closed
February 10, 2024, 9:58pm
8
This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.