Recent searches


No recent searches

Adding comments to a ticket using C#



Posted Sep 01, 2021

Hi, I am trying to add comments to a ticket using the ticket API using C#

https://[domain].zendesk.com/api/v2/tickets/8

Does anyone have any advice, or able to point me in the right direction?

Thanks

Pete

Class below...

public class From
{
}

public class To
{
}

public class Source
{
public From from { get; set; }
public To to { get; set; }
public object rel { get; set; }
}

public class Via
{
public string channel { get; set; }
public Source source { get; set; }
}

public class Result
{
public string url { get; set; }
public int id { get; set; }
public object external_id { get; set; }
public Via via { get; set; }
public DateTime created_at { get; set; }
public DateTime updated_at { get; set; }
public string type { get; set; }
public string subject { get; set; }
public string raw_subject { get; set; }
public string description { get; set; }
public string priority { get; set; }
public string status { get; set; }
public object recipient { get; set; }
public object requester_id { get; set; }
public object submitter_id { get; set; }
public object assignee_id { get; set; }
public object organization_id { get; set; }
public object group_id { get; set; }
public List<object> collaborator_ids { get; set; }
public List<object> follower_ids { get; set; }
public List<object> email_cc_ids { get; set; }
public object forum_topic_id { get; set; }
public object problem_id { get; set; }
public bool has_incidents { get; set; }
public bool is_public { get; set; }
public object due_at { get; set; }
public List<string> tags { get; set; }
public List<object> custom_fields { get; set; }
public object satisfaction_rating { get; set; }
public List<object> sharing_agreement_ids { get; set; }
public List<object> fields { get; set; }
public List<object> followup_ids { get; set; }
public object ticket_form_id { get; set; }
public object brand_id { get; set; }
public bool allow_channelback { get; set; }
public bool allow_attachments { get; set; }
public string result_type { get; set; }
}

public class Root
{
public List<Result> results { get; set; }
public object facets { get; set; }
public object next_page { get; set; }
public object previous_page { get; set; }
public int count { get; set; }
}


0

1

1 comment

image avatar

Greg Katechis

Zendesk Developer Advocacy

Hi Peter! We actually have a couple of API clients for the .NET framework in C# that may help you out here. Note that these are third-party developers, so we don't provide support for them, but that should help you going in the right direction!

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post