How to create and update ticket using REST API?

rajeshparthasar
Tera Contributor

Hi All,

                            i'm trying to create a ticket and update the ticket using REST API.

 

i'm able to create a ticket in incident table using HttpPost class.

when i try to update the ticket using HttpPut class.

it throws an error saying that "PUT Method not supported for API".

 

How to update the ticket in incident table?

Please help me.

Thanks in advance,

 

Regards,

 

Rajesh

@

13 REPLIES 13

thomgeb
Tera Contributor

Hi i managed to create incidents from an api REST call using MuleSoft. I have another project to create Request ticket instead of incident. Can some on help please to guide me how i can do that. I couldn't find anything in the API documentation.

Thank you!

thomgeb,

 

I have done this as a proof of concept for a customer. I basically did it using a scripted REST API to populate the Cart API (now deprecated and replaced with CartJS)

 

It retrieved an existing catalog item, populated the options then used the .placeOrder() to submit the cart. I can try and dig out the code if it would be of interest to you?

 

Hope this helps,

 

Richard

Hello Richard

Thank you for your response. And yes please any code and guidance will be greatly appreciated. As i mentioned in  my previous post i managed to do integration for creating incidents using MuleSoft connectors. And i believe there is a way to do the same for creating REQ. So any hint will help if you have the time to do please. Thank You so much.

 

I will be interested to get the WSDL for snow webservices as well, if you know anything please let me know.

Hello Richard

i tried the REST API explorer, and managed to create an incident with the rest call. I am wondering if it is possible to use one of the REST api to create a request as well, if so what is the api i need to use?