Team, I wanted to update the ticket status through API call. is that possible to do so? if you have any API please share it here.
Hi @sstudio,
Yes it is possible through Update ticket API
curl --location --request PUT 'https://{domain}.freshdesk.com/api/v2/tickets/{ticket_id}' \
--header 'Authorization: {APIKey}' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": 2
}'
1 Like
Thanks for the response @Siva I have implemented that. but now facing one more problem. I do have a params file where I get the API key and domain. To send the above request I need those on the app js file. can you explain to me how to get that?
Hi @sstudio,
You can store and get the API key, domain name, and other configuration information through the iparams method you can find the sample repos here.
@Siva I store domain and API key as secure. will I be able to access that in app js file using that syntax?
3 Likes
This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.