Skip to content

Delete a Ticket

Sayar Samanta edited this page Aug 28, 2018 · 2 revisions

Description : To delete a particular ticket from FAVEO

  1. URL : api/v1/helpdesk/delete

Parameters :

Name Data Type Required/Optional Description
api_key String Optional An alphanumeric code that can be used to authenticate your API calls
ticket_id String Required Id of the ticket want to delete
token String Required token generated for a user

HTTP Method : POST

Response Format : JSON

Response : Returns success message after the response.In case of any errors, an error message will be returned.

URL Request Example : http://www.stablehelpdeskc.faveodemo.com/api/v1/helpdesk/delete?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9wcm9kdWN0ZGVtb3VybC5jb21cL2NvbW11bml0eVwvcHVibGljXC9hcGlcL3YxXC9hdXRoZW50aWNhdGUiLCJpYXQiOjE1MzUwMTAxMzQsImV4cCI6MTUzNTAxMDM3NCwibmJmIjoxNTM1MDEwMTM0LCJqdGkiOiJ5dk53OEpJdU1wclAybGNVIiwic3ViIjoxLCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIn0.9p2KNyJqTzBMBHj0fh0JVGwFrCgWv96ogZVsBxpA8n8&ticket_id=115

JSON Response Example :

Success Response :

{
    "result": "your tickets has been deleted"
}

Some Common Error :

Error Response : If the token is expired

{
“error":"Token has expired"
}

If the ticket id is not provided

{
    "error": {
        "ticket_id": [
            "The ticket id field is required."
        ]
    }
}

If the token is not provided

{
    "success": false,
    "message": "Token not provided"
}

Installation and Upgrade Guide

Administrator's Guide

Agent's Guide

Email Integration

Release & Upgrade Notes

Known Issues

Contribute & Feedback

Knowledge Base

Third Party Integration

Plugins

API

Clone this wiki locally