URL: api/admin/department/{id}

Method: GET

Description : Fetches existing department data

Parameters:

Parameter Type Optional/Required Description
id integer Required Department id

Success Response :

{
 "success": true,
 "data": {
   "department": {
     "id": 1,
     "name": "support",
     "type": {
       "id": 1,
       "name": "Public"
     },
     "department_sign": "Faveo",
     "is_default": 0,
     "created_at": "2018-11-16 06:43:39",
     "updated_at": "2018-11-16 07:00:46",
     "managers": [
       {
         "id": 1,
         "email": "admin@faveo.com",
         "profile_pic": "https:\/\/secure.gar.com\d9a?s=80&r=g&d=icon",
         "name": "Demo Admin"
        }
     ]
   },
   "outgoing_email": {
       "id": 1,
       "name": "admin"
    },
    "business_hour": {
       "id": 1,
       "name": "Default Business-Hours"
     }
 }
}

 

Error Response :

{

"success":false,

"Message":"Not found"

}

 

Leave a Reply

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