URL: api/admin/department-profile/{id}

Method: GET

Description : Gets  department profile

Parameters:

Parameter Type Optional/Required Description
id integer Required Department id

Success Response without business hours :

{
 "success": true,
 "data": {
   "department": {
     "id": 1,
     "name": "support",
     "size": 2
    }

 }

}

Success Response with business hours :

{
 "success": true,
 "data": {
   "department": {
     "id": 1,
     "name": "support",
     "size": 2,
     "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 *