Get all associated organization and organization department with user
URL : v3/api/user/get_organization_with_department/{userId}
HTTP Method : GET
Response
- Response Format: JSON
- Returns JSON which contains below response
Sample JSON Success Response :
{
"success": true,
"message": "User's Organization with department fetched successfully",
"data": {
"current_page": 1,
"data": [
{
"user_id": 43346,
"org_id": 1,
"organization": "Broadband Telecom",
"departments": [
{
"id": 3,
"name": "Account"
}
]
},
{
"user_id": 43346,
"org_id": 2,
"organization": " Inc.",
"departments": [
{
"id": 2,
"name": "NOC"
}
]
}
],
"first_page_url": "https://testdevil.com/faveo/public/v3/api/user/get_organization_with_department/43346?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://testdevil.com/faveo/public/v3/api/user/get_organization_with_department/43346?page=1",
"next_page_url": null,
"path": "https://testdevil.com/faveo/public/v3/api/user/get_organization_with_department/43346",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
Possible Errors/Failures:
{
"success":false,
"message":"Invalid API end-point"
}