I'm not very familiar with PERL and can't translate API documentation into a valid request.
Can you help me?
Documentation of TicketCreate: https://doc.otrs.com/doc/api/otrs/8.0/Perl/Kernel/GenericInterface/Operation/Ticket/TicketCreate.pm.html
The request body is probably correct.
I just couldn't interpret how to format the URL.
{
"UserLogin": "test",
"Password": "test",
"Ticket" :
{
"Title": "test",
"Queue": "test",
"Lock": "test",
"Type": "test",
"State": "test",
"Priority": "test",
"Owner": "test",
"CustomerUser": "test"
},
"Article":
{
"Subject" : "test",
"Body" : "test",
"ContentType": "text/plain; charset=utf8"
}
}
I tried to create valid code/URL, but I couldn't structure it.
The expected result is a ticket created in OTRS with an article (comment) linked.