Page tree
Skip to end of metadata
Go to start of metadata

You can add a department by sending the POST request to the following URL:  /department.

Permission to run the request: Account Owner, Administrators.

Request Headers

X-Auth-Account-Url (required)Base URL of the account, e.g.
X-Auth-Email (required)Login of Account Owner or Administrator.
X-Auth-Password (required)Password of Account Owner or Administrator.
parentDepartmentId (required)ID of the department wich will the parent for the added one.

After the request has been completed, the system returns the response with the 201 code. The body of the response contains ID of the added department.

Possible Response Codes

201Successful operationnew department has been added.
400Bad RequestSome of the sent parameters are incorrect.
401UnauthorizedAn authorization error.
403Permission deniedThe user doesn't have enough permissions to add departments.

Sample Request

POST /department HTTP/1.1
X-Auth-Password: 12345Q

<?xml version="1.0" encoding="UTF-8"?>
	<name>New Department</name>

Sample Response

HTTP/1.1 201 Successful operation
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
  • No labels