3 Comments

  • Bryan Flynn
    Comment actions Permalink

    There are a couple of API documentation sections that describe CCs and Followers:

    Setting email CCs
    https://developer.zendesk.com/rest_api/docs/support/tickets#setting-email-ccs

    Setting followers
    https://developer.zendesk.com/rest_api/docs/support/tickets#setting-followers

    These talk about how to use and set the email_ccs field on the Ticket resource.

    There are a number of Ticket object attributes that have set/get methods in the Zendesk Support Apps framework (see Ticket object). It doesn't look like email_ccs, however, has set/get convenience methods documented.

    Even so, If you're writing an Apps framework app, you can use the client.request method to make the call directly to an API endpoint. If you scroll down from this link, you'll see an example that uses client.request to make a GET call the /api/v2/tickets.json API. You can use this client.request method for both GET and PUT operations.

    client.request('/api/v2/tickets.json').then(
      function(tickets) {
        console.log(tickets);
      },
      function(response) {
        console.error(response.responseText);
      }
    );
    

    Hope this gets you to your next step. If not, or if the above wasn't on the mark with what you were looking for, let me know. Thanks!

    0
  • Erivelton
    Comment actions Permalink

    Theres any option to add a CC before ticket creation? The option provided works after creation.

    0
  • Joseph May
    Comment actions Permalink

    Yes, please review out our documentation on setting collaborators. As Bryan mentioned previously, you would use the client.request method to make this POST.

    0

Please sign in to leave a comment.

Powered by Zendesk