API:addTicketDept - Add ticket department

Creates new ticket department

Required parameters

email
Department email
name
Department name
method
Ticket import method, POP or PIPE
host
Email host for POP import method
login
SMTP username for POP import method
password
SMTP password for POP import
port
SMTP port for POP import

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=addTicketDept&email=EMAIL&name=NAME&method=METHOD&host=HOST&login=LOGIN&password=PASSWORD&port=PORT

Response

   {
      "success": false,
      "call": "addTicketDept",
      "server_time": 1323791015,
      "error": [
         "Email cannot be empty",
         "Department name cannot be empty"
      ]
   }