Create unposted/draft article by API

Hi, is there a way to attach a article to an existing ticket without actually posting it.

We want to attach order confirmation PDFs files created by our ERP sytem to a given ticket in behalf of the an agent and then let the agent type a view lines in this newly created article and then send it out to the customer via email. In an ideal world the ticket would pop up on the agents stack.

The normal user interface is keeping unposted drafts somewhere in the database, because it is possible to log into the system from a different browser and all the drafts are there. But I have not found a way to do this from the API.

Thanks
-Rainer

That’s very thin ice.
Best way to fiddle around this is the developer console of your Browser.

What I can share is the endpoint that gets polled during an update of the draft:
/api/v1/taskbar/{taskbar-id}

This is the Payload via PUT:

{"id":1,"user_id":3,"client_id":"4","key":"Ticket-123456","callback":"TicketZoom","prio":9,"notify":false,"active":true,"state":{"ticket":{},"article":{"body":"6w804d6w4d68w40\u003cdiv\u003e06dt80hb46red4t068hgb40\u003c/div\u003e\u003cdiv\u003eertd40hb\u003c/div\u003e\u003cdiv\u003e6erd40\u003c/div\u003e\u003cdiv\u003e6ghb40edr\u003c/div\u003e","from":"Marcel Herrguth","ticket_id":"123456","content_type":"text/html","sender_id":"1","type_id":"9","form_id":"123456"}},"params":{"ticket_id":123456,"overview_id":1,"init":true},"last_contact":"2019-12-03T17:50:04.021Z","created_at":"2019-12-03T07:49:39.687Z","updated_at":"2019-12-03T17:50:04.017Z","preferences":{"tasks":[{"id":123456,"user_id":1,"last_contact":"2019-12-03T17:50:04.021Z","changed":true}]},"attachments":[]}

Sorry that’s not super detailed, but currently as far as I can help you. I hope it helps at least a bit.

Thanks, I think I can get most of the values from the normal ticket api, but I have no clue where to get the form_id from. … and of course the taskbar_id is also not public.