Forums/Community/Zendesk API

Answered

Api v2 beta - urls documentation in ticket_audits

Davidgu
asked this on April 28, 2012 07:20

In the documentation i can't see the urls in this page (http://developer.zendesk.com/ticket_audits.html)

I think the correct url is /v2/tickets/{ticket}/audits.json

Is correct?

 

Comments

User photo
Steven Yan
Product Manager
Check Answer

Hi David, that is correct, we have some updated documentation coming on that but it's currently gated by our release cycle.  It will be updated by next Thursday.  Thanks for pointing that out!

April 28, 2012 07:56
User photo
Davidgu
visualbeo

Thanks!

April 28, 2012 08:15
User photo
Dave Fowler
chartio

I'm getting a 405 when creating new audits.  

https://{{ subdomain }}.zendesk.com/api/v2/tickets/{id}/audits.json

Is this functionality still not enabled?  Any idea on when it will be?

May 04, 2012 12:19
User photo
Dave Fowler
chartio

I'm getting a 405 when creating new audits.  

https://{{ subdomain }}.zendesk.com/api/v2/tickets/{id}/audits.json

Is this functionality still not enabled?  Any idea on when it will be?

May 04, 2012 12:20
User photo
Steven Yan
Product Manager
Check Answer

Dave, you cannot create new audits -- audits are a read-only record of what activity has occurred on a ticket.  When you make a PUT or POST to a ticket, new audits will be created.

May 04, 2012 12:23
User photo
Dave Fowler
chartio

Thanks Steven!  I've got it figured out.  

 

Just to double confirm, there's no way to choose the email addr of who's submitting the comment.  It's always whoever is logged in right? I'm building an import script to load the contents of our current support forum to a zendesk one.  It will be a bit strange if I was the only one to make any comments on that older data :)

May 04, 2012 12:44
User photo
Adam
Zendesk

Just a quick question on this topic: how do you add a comment to a ticket via the API v2? If you can't create new audits, how do you add a comment via the API on the ticket object itself.

May 09, 2012 18:10
User photo
Steven Yan
Product Manager

Hi Adam, just realized that we didn't document this as well as we should have.  You would want to pass something like this to the ticket.  We will update the docs to reflect this.

PUT /api/v2/tickets/12345.json

{
  "ticket":{
    "comment": {
      "value":"I am a comment body"
    }
  }

May 10, 2012 23:12