URL: v3/api/admin/team-members/{teamId}

Method: GET

Description : Fetches existing team members based on team id

Parameters:

Parameter Type Optional/Required Description
teamId integer Required Team id

Success Response :

{
 "success": true,
 "data": {
   "current_page": 1,
   "data": [
     {
       "id": 3,
       "user_name": "ashley",
       "role": "admin",
       "active": 1,
       "email_verify": "1",
       "mobile_otp_verify": "1",
       "ban": 0,
       "is_delete": 0,
       "created_at": "2017-03-29 11:14:51",
       "updated_at": "2017-03-29 11:14:51",
       "name": "Ashley Knite"
     },
     {
       "id": 4,
       "user_name": "jruth",
       "role": "agent",
       "active": 1,
       "email_verify": "1",
       "mobile_otp_verify": "1",
       "ban": 0,
       "is_delete": 0,
       "created_at": "2017-03-29 11:16:01",
       "updated_at": "2017-03-30 05:57:02",
       "name": "Tim West"
     },
     {
       "id": 5,
       "user_name": "ayesha",
       "role": "agent",
       "active": 1,
       "email_verify": "1",
       "mobile_otp_verify": "1",
       "ban": 0,
       "is_delete": 0,
       "created_at": "2017-03-29 11:17:46",
       "updated_at": "2017-03-30 06:30:07",
       "name": "Ayesha Lance"
     },
     {
       "id": 8,
       "user_name": "sara",
       "role": "agent",
       "active": 1,
       "email_verify": "1",
       "mobile_otp_verify": "1",
       "ban": 0,
       "is_delete": 0,
       "created_at": "2017-03-29 11:21:23",
       "updated_at": "2017-03-30 06:24:47",
       "name": "Sara Lance"
     }
   ],
   "first_page_url": "http://faveo.com/api/admin/team-members/2?page=1",
   "from": 1,
   "last_page": 1,
   "last_page_url": "http://faveo.com/api/admin/team-members/2?page=1",
   "next_page_url": null,
   "path": "http://faveo.com/api/admin/team-members/2",
   "per_page": 10,
   "prev_page_url": null,
   "to": 4,
   "total": 4
 }
}

 

 

Error Response :

{

"success":false,

"message":"Not found"

}

 

Or

{

"success":false,

"message":"No data available in table"

}

 

Or

{

"success":false,

"message":"No matching records found”

}

 

Tagged: