I have a problem creating tickets with attachments using REST web service. I can create tickets but if I try to send more than one attachments it creates the ticket with only the last one.
I wonder if my json is correctly formed:
Code: Select all
{
"Ticket":{
"Title":"REST Create Test",
"Type":"Test",
"Queue":"Test",
"State":"open",
"Priority":"3 normal",
"CustomerUser":"customer"
}
,"Article":{
"Subject":"Test Subject",
"Body":"This is only a test",
"ContentType":"text/plain; charset=utf8"
}
,"Attachment":{
"ContentType":"image/gif",
"Filename":"img1.gif",
"Content":"R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
}
,"Attachment":{
"ContentType":"image/gif",
"Filename":"img2.gif",
"Content":"R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
}
}