URL: v3/api/admin/edit-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": 3,
            "name": "Operation",
            "type_id": 1,
            "department_sign": "",
            "is_default": 1,
            "statuses": [],
            "form_identifier": "department_3",
            "business_hour": null,
            "outgoing_email": null,
            "managers": [
                {
                    "id": 4,
                    "first_name": "Private",
                    "last_name": "",
                    "email": "private@gmail.com",
                    "profile_pic": "https://secure.gravatar.com/avatar/f95db58d6e2a7228856034dfb3febe12?s=80&r=g&d=mm",
                    "name": "Private <private@gmail.com>",
                    "full_name": "Private",
                    "meta_name": "Private <private@gmail.com>",
                    "email_verified": false,
                    "mobile_verified": false,
                    "pivot": {
                        "department_id": 3,
                        "agent_id": 4
                    }
                }
            ]
        }
    }
}
Tagged: