How to create a ticket with attachment in RT using REST

2.5k views Asked by At

Does anyone know how to create a ticket with attachment in RT (Request Tracker) using REST service with PHP script?

2

There are 2 answers

0
singam On BEST ANSWER

remove "attachment_1: /tmp/img2.PNG" add a POST a variable using addPostFile() with name "attachment_1" that contains the raw attachment.

0
Ken Wagnitz On

If you are using HTTP_Request, the function is addFile() instead of addPostFile(). -It worked for me.