I am integrating our portal with OTRS server, When I create a ticket from OTRS UI it is successful, But unfortunately, when I send the same request from any REST Client for the same user it fails to create the ticket giving following error and if I remove the service from the request I pass.
Code: Select all
{
"Error": {
"ErrorMessage": "TicketCreate: Ticket->ServiceID or Ticket->Service parameter is invalid!",
"ErrorCode": "TicketCreate.InvalidParameter"
}
}
Code: Select all
{
"Ticket":{
"Title":"REST Create Test",
"Type": "Test Type",
"Queue":"Unclassified",
"State":"open",
"PriorityID":"3",
"CustomerUser":"abc@test.com",
"CustomerID":"abc",
"Service": "TestService",
"ServiceID": "1"
},
"Article":{
"Subject":"Rest Create Test",
"Body":"This is only a test",
"ContentType":"text/plain; charset=utf8"
}
}
Is there anyone who can help that what I am exactly missing the request ?