how to mass delete cc on a ticket via API

Beantwortet

4 Kommentare

  • Thomas Verschoren
    Aktionen für Kommentare Permalink

    You could take a two step approach:

    One: do a PUT on the /api/v2/ticket/ID.json with the following code:

    {
      "ticket": {
        "email_ccs": []
      }
    }

    This will clear out all existing CCs.

    Wait a bit, and then run another cycle of PUT with the new values in the array.

    Kinda similar to this approach: https://support.zendesk.com/hc/en-us/community/posts/209285958-Removing-ALL-CCs-from-a-ticket-via-a-Trigger-Target But updated for the current split between CC and Followers.

    0
  • Andreas Pfeiffer
    Aktionen für Kommentare Permalink

    Hi Thomas,

    This payload doesn't work neither. In summary:

     

    {
    "ticket": {
    "follower_ids": []
    }
    }

    AND

    {
    "ticket": {
    "email_ccs": []
    }
    }

    are KO !

    The only following payload works (remove all ccs and followers):

    {
    "ticket": {
    "collaborator_ids": []
    }
    }

     

    0
  • Thomas Verschoren
    Aktionen für Kommentare Permalink

    Perfect.

     

    I'll update my own documentation too ;-)

    0
  • Andreas Pfeiffer
    Aktionen für Kommentare Permalink

    I wouldn't say it is perfect, but rather annoying :

    You cannot delete/reset the followers or the cc's, but only delete/reset cc's AND followers via the collaborator_ids.

    If zendesk gives for both a different meaning (which is the case and a good idea), this should be a must have to have same api behaviour for collaborator_ids, follower_ids and email_ccs

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk