This v1 API  will be deprecated from 15th March 2020

Description:

This API we are using to change the status of a ticket. To change the status of a ticket we need to send the ticket id and the status id.

URL : api/v2/helpdesk/status/change

          (Replace this URL with you helpdesk URL)

Parameters :

Name Data Type Required / Optional Description
api_key String Optional An alphanumeric code that can be used to authenticate your API calls
token String Required Token generated for a user
ticket_id Integer Required Id of the ticket has to change the status
status_id integer Required Id of the status

HTTP Method : POST         

  •   URL Request Example:

https://www.stablehelpdesk.faveodemo.com/api/v1/helpdesk/status/change?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEsImlzcyI6Imh0dHA6Ly9wcm9kdWN0ZGVtb3VybC5jb20vc2FyZnJhei9wdWJsaWMvYXBpL3YxL2F1dGhlbnRpY2F0ZSIsImlhdCI6MTUzNDc1OTg5MiwiZXhwIjoxNTM0NzYwMTMyLCJuYmYiOjE1MzQ3NTk4OTIsImp0aSI6IlhBdzNrNGhwZXNUVWNFeVQifQ.TpuZ6Vwo9oMlt_LKRZYv2cU5UY8YBKqe06-66ioZA24&ticket_id=13&user_id=9

Response

  •   Response Format: JSON
  •   Returns JSON which contains below response

Sample JSON Success Response :

{

   "success": true,

   "message": "Status changed to Closed"

}

Response Description:

Parameter Description
success It will give a boolean value like true or false. If ticket status is changed successfully then it will give true value else it will give false value
message It will give a message that status changed.

Possible Errors/Failures:

 *Please check the responses for some common errors

Leave a Reply

Your email address will not be published. Required fields are marked *