Skip to content

Get Departments

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

Description : To fetch all departments listed in FAVEO

  1. URL : api/v1/helpdesk/department

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

HTTP Method : GET

Response Format : JSON

Response : returns all departments listed in FAVEO.

http://www.stablehelpdeskc.faveodemo.com/api/v1/helpdesk/department?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9wcm9kdWN0ZGVtb3VybC5jb21cL2NvbW11bml0eVwvcHVibGljXC9hcGlcL3YxXC9hdXRoZW50aWNhdGUiLCJpYXQiOjE1MzUwMTQwNDgsImV4cCI6MTUzNTAxNDI4OCwibmJmIjoxNTM1MDE0MDQ4LCJqdGkiOiJwM0h4TjJUMUVSbXRFbTJuIiwic3ViIjoxLCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIn0.CDAGq6xATQLCMALLWHH6JihcBpNhLLeaezp-o_AlCUE

JSON Response Example :

Success Response :

{
    "result": [
        {
            "id": 1,
            "name": "Support",
            "type": "1",
            "sla": 1,
            "manager": null,
            "ticket_assignment": "",
            "outgoing_email": "",
            "template_set": "",
            "auto_ticket_response": "",
            "auto_message_response": "",
            "auto_response_email": "",
            "recipient": "",
            "group_access": "",
            "department_sign": "",
            "created_at": "2018-08-13 14:22:49",
            "updated_at": "2018-08-13 14:22:49"
        }
    ]
}


Some Common Error :

Error Response : If the token is expired

{
“error":"Token has expired"
}

If the token is not provided

 {
  "error": "token_not_provided"
}
Parameter Description
id id of the department
name name of the department
type type of the department
sla sla of the department
manager name of the department manager
ticket_assignment ticket assignment name for the department
outgoing_email outgoing email for the department
template_set template for the outgoing email for the department
auto_ticket_response indicates the auto ticket response for the department
auto_message_response indicates the auto message response for the department
auto_response_email indicates the auto response mail for the department
recipient indicates the recipient for the department
department_sign indicates the sign of the department
created_at department created date
updated_at department last updated date

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