URL: api/admin/department-agents/

Method: GET

Description : Gets department members by passing department id, otherwise all active admins and agents are listed for making manager.

Parameters:

Parameter Type Optional/Required Description
id integer Optional Department id
search_query string Optional String to be searched

Success Response without departmentId :

{
 "success": true,
 "data": {
   "members": [
    {
        "id": 1,
                               "email": "mr.dmartin1984@gmail.com",
                               "profile_pic": "https://secure.gravatar.com/avatar/bf6373b?s=8&d=identicon",
                               "name": "Demo Admin"
                         },
                         {
                               "id": 3,
                               "email": "ashley@faveo.com",
                               "profile_pic": "https://secure.gravatar.com/avatar/10?s=80&r=g&d=identicon",
                               "name": "Ashley Knite"
                        },
                        {
                               "id": 4,
                               "email": "ashley@fveo.com",
                               "profile_pic": "http://localhost/faveo/public/media/images/contaad.png",
                               "name": "Tim West"
                       }
        ]
  }

}

Success Response with departmentId :

{
 "success": true,
 "data": {
   "members": [
    {
        "id": 1,
                               "email": "mr.dmartin1984@gmail.com",
                               "profile_pic": "https://secure.gravatar.com/avatar/bf6373b?s=8&d=identicon",
                               "name": "Demo Admin"
                         }
        ]
  }

}

 

Leave a Reply

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