Hi,
.I’m currently using RT 4.4.4 in a project and i’m trying to create a new ticket from postman by creating a variable named “content” which is including the ticket details and post it on “http://rt-dev.rfldev.com/REST/1.0/ticket/create” this api. But the ticket is not created. It returns a “200 Ok” and # Objects of type ticket must be specified by numeric id.
Thank you for your response. I used create instead of new but still the same issue is occuring. Actually i am passing my ticket details inside a variable named content in the following format
content
id 775
Queue 1
Requestor akhil.siby@reflectionsinfos.com
Subject testupdate
Owner 6
Status new
using this api http://rt-dev.rfldev.com/REST/1.0/ticket/create={{content}}
still the ticket is not creating .
To create a ticket you should use ticket/new endpoint. Maybe this curl example will help: curl --location --request GET 'https://MY-RT-HOST/REST/1.0/ticket/new?content=id:%20ticket/new%0AQueue:%20support%0ASubject:%20Hello%20from%20REST1!%0AText:%20This%20is%20first%20message%20in%20the%20ticket'
Notice the endpoint (ticket/new) and id: ticket/new in content. In case of the query above I got the following response:
RT/4.4.4 200 Ok
# Ticket 359956 created.
The request may be either GET or POST, I think it depends on whether you want to attach any files to ticket.
That is because you also need to use the endpoint REST/1.0/ticket/new, as I’ve written in the first response. So, basically, the url should be something like YOUR-RT/REST/1.0/ticket/new and there should be id: ticket/new in content GET param.