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.
Keep in mind that parameter might be tested for existing entities, like state, queue, etc. If a state with the name test does not exist the request fails.
The HTTP method, URL etc depends on the web service configuration. If you really using version 8 (from your link to the API) I recommend contacting the support.