URL : api/ticket/change-department Method : POST Query Parameters : Parameter Type Optional/Required Description ticket-id integer Required Ticket id of current ticket dept-id integer Required Id of new department Response : { “success”:true, “Message”:”Ticket department changed successfully” }
Category: Ticket Actions
Change ticket due-date
URL : api/ticket/change-duedate Method : POST Query Parameters : Parameter Type Optional/Required Description ticket-id integer Required Ticket id of current ticket duedate string Required The new due date. Due date must be sent as string in y-m-d hh:mm:ss format in agent’s timezone Response : { “success”:true, “Message”:”Ticket duedate changed successfully” }
Get action list ( functionality which is allowed to a logged in agent )
URL : api/agent/action-list Method : GET Query Parameters : None Response : { “success”:true, “data”:{ “actions”:{ “assign”:true, “transfer”:true, “edit”:true, “reassign”:true, “change_duedate”:true, “ban”:true, “Has_calender”:true //for task list } } }
Get form data
URL : api/get-form-data Method : GET Query Parameters : Parameter Type Possible values Optional/Required Description category string ticket, user, organisation Required It is the category of the form which has to be fetched Response : { “success”:true, “data”:{ “form_fields”:[ { “id”:1, “title”:”title”, “pattern”:””,//any regex pattern “sort_order”:1, “type”:”email”, “required_for_agent”:1, “required_for_user”:1, “display_for_agent”:1, “display_for_user”:1, “default”:1, “media_option”:”0″, “api_endpoint”:null, “labels_for_agent”:[ […]
Post form data (will only be used by admin panel)
URL : api/post-form-data Method : POST Query Parameters : None Body Parameters : Parameter Type Possible values Optional/Required Description category string ticket, user, organisation Required It is the category of the form which has to be fetched form-fields array Array of objects Required Form fields which are updated or newly created. Please read below for […]
Delete form data (will only be used by admin panel)
URL : api/delete-form-data Method : DELETE Query Parameters : Parameter Type Optional/Required Description id integer Required Id of the field that is required to be deleted type string Required Whether field or option Possible values are “option” ,”label” and “field” Response : { “success”:true, “Message”:”Successfully deleted” }
Add Collaborators
URL : api/ticket/collaborators Method : POST Query Parameters : Parameter Type Optional/Required Description ticket-id integer Required Ticket id of current ticket collaborator-ids Array Required Array of collaborator ids Response : { “success”:true, “message”:”Successfully added” }
Create User and add him/her as Collaborator
URL : api/ticket/create-add-collaborator Method : POST Query Parameters : Parameter Type Optional/Required Description ticket-id integer Required Ticket id of current ticket name string Required Name of the collaborator email string Required Email of the collaborator Response : { “success”:true, “message”:”Successfully added” }