URL: api/admin/department/

Method: POST

Description : Creates or Updates a department

Parameters:

Parameter Type Optional/Required Description
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_id integer Optional 0 or 1, make department default

Success Response :

{

"success":true,

"message":"Department saved successfully"

}

Error Response :

{

"success":true,

"message":"name already taken"

}

 

Leave a Reply

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