Update Ticket Status through API

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

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?

1 Like

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.

1 Like

@Siva I store domain and API key as secure. will I be able to access that in app js file using that syntax?

Hi @sstudio

Please refer this blog on how to secure your params and then use them in your app.


This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.