Solved

How to enter public comment using the API?

  • 13 October 2022
  • 2 replies
  • 47 views

Userlevel 1
Badge

Hi,

Is it possible to add public comment to a ticket via the FreshService API? If not, what is the best workaround?

Thanks,

Sam

icon

Best answer by eeha0120 13 October 2022, 20:59

View original

2 replies

Userlevel 4
Badge +6

HI.

Yes, totally.

Please refer to the following example in the documentation:

https://api.freshservice.com/#create_a_note

 

P.S.: Just ensure to set private to false for the note to be public.

curl -v -u user@yourcompany.com:test -H "Content-Type: application/json" -X POST -d '{ "body":"Hi tom, Still Angry", "private":false }' 'https://domain.freshservice.com/api/v2/tickets/265/notes'

 

 

Hope this helps.

 

Sincerely.

Elvis.

Userlevel 1
Badge

@eeha0120  Thanks!

I feel silly. It is in the API documentation. I completed missed it. Thanks for pointing that out. Much appreciated. 

Sam

Reply