hi team,
is there any way to do this? any solution found for this problem?
HI team,
have we found any solution to this problem? how can we add a new tag without deleting existing tags.
Try this
var headers = { 'Authorization': "Basic " + btoa([FD API KEY] + ":X"), 'Content-Type': 'application/json' } requestAPI('https://domain.freshdesk.com/api/v2/tickets/[id]', 'GET', {headers:headers}) .then((ticket)=>{ let existingTags = ticket.tags exisitingTags.push('NEW TAG') var options = { headers: headers, body: JSON.stringify({ tags: existingTags }) } requestAPI('https://doamin.freshdesk.com/api/v2/tickets/[id]', 'PUT', options) .catch((err)=>{ //handle errors }); }) .catch((err)=>{ //handle errors })
this is java script. I wanted add tag from automation rules. can we somehow do by using webhook automation rules
I wanted to add new tag using ticket creation automation rules. Is there any way to do it using webhook automation rule
Start your 21-day free trial. No credit card required. No strings attached.
Start Free Trial
Pedro Coelho
Hi,
If I understand your API docs correctly, the update ticket endpoint will accept a "tags" attribute but it will replace all tags the ticket has with the ones I send.
I'd like to add new tags without deleting the existing ones, and without having to send them in my request, as concurrency errors originating from multiple requests at the same time may result in tags being lost.
E.g.
Ticket has tags "hello" and "world".
If I do a PUT request with "tags": ["foo"], ticket will only have tag "foo" from there on, deleting tags "hello" and "world".
That's not what I want, I just want the tag "foo" added to the list, so the ticket has the tags "hello", "world" and "foo".
Is there a way for me to accomplish this?
1 person has this question