URL: v3/api/admin/create-update-department

Method: POST

Description : Creates or Updates a department



Parameter Type Optional/Required Description
id integer Optional while updating existing department, id is used
name string Required Department name
type_id integer Required 0 or 1, public = 1, private = 0
outgoing_email_id integer Optional Email id
business_hour_id integer Optional Business Hour id
department_sign string Optional Department Sign
manager_ids integer Optional Agent or Admin user_id
is_default boolean Optional 1 to make department default
department_status array Optional array of status ids could be passed(*DepartmentStatusLink Plugin feature)

Success Response :



"message":"Department saved successfully"