zendesk / zendesk_api_client_php

Official Zendesk API v2 client library for PHP
336 stars 259 forks source link

How To Remove Tag(s) From A Ticket? #397

Closed WDC closed 4 months ago

WDC commented 6 years ago

I am currently adding Tags to Tickets using the following line:

$this->client->tickets($ticket_id)->tags()->update(null, ['tag1', 'tag2', 'tag3']);

However, I cannot seem to figure out how to remove tags from tickets. I have tried:

$this->client->tickets($ticket_id)->tags()->delete(null, ['tag1', 'tag2', 'tag3']);

as well as

$this->client->tickets($ticket_id)->tags(['tag1','tag2','tag3'])->delete();

What is the correct method to remove tags from tickets using this API?

Thank you!

ecoologic commented 5 months ago

Hi,

thank you for your request, are you still interested in a solution for this issue?

ecoologic commented 4 months ago

Closing due to inactivity. Re-open if needed.