The /actions
request on a Ticket ID returns a list of actions available to the currently logged in user to be applied on the ticket. Depending on the users permissions - and the current state of the ticket - these actions may vary.
Returns a list of the actions available to be applied on the ticket. The list is in the form a map with the key being the action ID and the value being the display name of the action.
# Request GET /api/ticket/1/actions HTTP/1.1 Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u # Response HTTP/1.1 200 OK Content-Type: application/json { "-33": "Quick-Ticket anwenden", "-2": "Auftrag reaktivieren", "-23": "E-Mail empfangen (dem Endanwender nicht anzeigen)", "-9": "E-Mail empfangen" }
# Browser access http://127.0.0.1:9000/api/ticket/1/actions # Shell access using curl curl -LsH "Authorization: Bearer <access_token>" "http://127.0.0.1:9000/api/ticket/1/actions" # Shell access using curl using username and password curl -Lsu username:password "http://127.0.0.1:9000/api/ticket/1/actions"