URL: api/admin/delete-department/{id}

Method: DELETE

Description : Delete a department.

Parameters:

Parameter Type Optional/Required Description
id integer Required Department id of the department to be deleted.

Success Response :

{

"success":true,

"Message":"Department deleted successfully"

}

OR

{

"success":true,

"Message":{

"tickets":"Department : London Hoppe, Tickets have been                                                                                                                                                                                                                                         moved to default department",

"users":"Department : London Hoppe, Users have been                                                                                                                                                                                                                                         moved to default department",

"emails":"Department : London Hoppe, Emails have been                                                                                                                                                                                                                                         moved to default department",

"helptopics":"Department : London Hoppe, The associated helptopic has been deactivated”

   

}

Error Response :

{

"success":false,

"Message":"Not found"

}

OR

{

"success":false,

"Message":{

"defaultDepartment":"You cannot delete default department",

"sla":"You cannot delete this department,this department applied sla plan"

   

}

 

Leave a Reply

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