Ticket ID of newly created ticket
|
|
Is there a way to retrieve the ticket id of a newly created ticket? It would be really great if the server returns the ID when a POST is done on a new ticket (or possibly return the whole ticket as if a GET was done). |
|
|
Promixis, Actually, in the spirit of building RESTful web services, we have used one of the standard HTTP headers specifically designed for this kind of information. When you create any resource via the Unfuddle API (including a ticket), you will find that Unfuddle responds with a 200 OK, and the Location HTTP header will contain the full URL of the created resource. Typically the last part of the URL in the Location header is the ID of the newly created resource. For instance, a typical ticket resource URL is something like: http://mysubdomain.unfuddle.com/api/v1/projects/2345/tickets/98765 I hope that helps. |
|
|
Perfect that does the trick! |
