Skip to content

Instantly share code, notes, and snippets.

@georgioupanayiotis
Created October 31, 2017 15:42
Show Gist options
  • Save georgioupanayiotis/084d55c040e80059d91adcef8f1a5bda to your computer and use it in GitHub Desktop.
Save georgioupanayiotis/084d55c040e80059d91adcef8f1a5bda to your computer and use it in GitHub Desktop.
Create multiple zendesk tickets
for(x=0; x<500; x++) {
var title = "Ticket #" + x;
var subject = "Test ticket #" + x;
var body = "This is test ticket #" + x;
$.ajax({
url: '/api/v2/tickets.json',
contentType:'application/json',
type: 'POST',
data: JSON.stringify({"ticket": {"subject": subject , "comment": { "body": body }}})
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment