Skip to content

Collaborator fetch associated with ticket

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

Description : To fetch collaborator's associated with the ticket in FAVEO.

  1. URL : api/v1/helpdesk/collaborator/get-ticket

Parameters :

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

HTTP Method : POST

Response Format : JSON

Response : Returns list of collaborator's associated with the ticket.In case of any errors, an error message will be returned.

URL Request Example : http://www.stablehelpdeskc.faveodemo.com/api/v1/helpdesk/collaborator/get-ticket?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9wcm9kdWN0ZGVtb3VybC5jb21cL2NvbW11bml0eVwvcHVibGljXC9hcGlcL3YxXC9hdXRoZW50aWNhdGUiLCJpYXQiOjE1MzUwMTU4OTEsImV4cCI6MTUzNTAxNjEzMSwibmJmIjoxNTM1MDE1ODkxLCJqdGkiOiI3eDNCeWFONk5paVpoMnhaIiwic3ViIjoxLCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIn0.USVZjLhZCGcUMKOBl2ceIVXXqEHdY6_fNSPWt6u6p64&ticket_id=113

JSON Response Example :

Success Response :

{
    "collaborator": [
        {
            "email": "testing@gmail.com",
            "user_name": "testing@gmail.com",
            "avatar": "http://productdemourl.com/community/public/uploads/profilepic/https://secure.gravatar.com/avatar/9ad574806427070b94735f216e9abdc1?s=80&r=g&d=identicon"
        }
    ]
}


Some Common Error :

Error Response : If the token is expired

{
“error":"Token has expired"
}

If the token is not provided

 {
  "error": "token_not_provided"
}

If the ticket id is not provided

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

Response Description :

Parameter Description
email email of the user
user_name user name of the user
avatar avatar of the user

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