Returns information on a specified department.
Use this operation to get information on a QAComplete department specified by its ID.
Basic authentication using a user’s login and password. See Authentication for details.
The authenticating user must have access to QAComplete projects.
To get information on a department, send a GET request to the following URL:
DeptId : integer, required
The ID of the needed department.
A sample request:
GET http://yourserver.com/rest-api/service/api/v1/depts/8162 HTTP/1.1
Authorization: Basic am9obkBleGFtcGxlLmNvbTpwQHNzd29yZA==
A sample request made by using cURL:
curl -u firstname.lastname@example.org:p@ssword -H "Accept: application/json" http://yourserver.com/service/api/v1/depts/8162
If successful, the operation responds with HTTP status code 200 and returns a JSON object with department information.
A sample response:
HTTP/1.1 200 OK
"dept_name": "Your Company Name",
The authenticating user’s rights to access departments.
- 0 - None
- 1 - Read
- 2 - Update
- 3 - Read and update
- 4 - Delete
- 5 - Read and delete
- 7 - Full access
The ID of the specified department.
The department name.
The project name.
The company ID.
The unique identifier of the project.
The ID of the last user who updated the department information.
The date and time when the department was created.
The date and time when the department was last updated.
The scheduled date and time when work on the project started.
The actual date and time when work on the project started.
The scheduled date and time when work on the project will complete.
The actual date and time when work on the project completed.
The estimated hours required to complete the project.
The actual hours spent working on the project.
The estimated cost of working on the project.
The actual cost of working on the project.
True if the project cost is estimated automatically.
True if the project is active and False if the project is hidden (archived).
The name of the last user, who updated the project, in the Lastname, Firstname format.
The number of notes attached to the project.
The number of calendar events attached to the project.
The number of files attached to the project.
The current page size.
If the operation fails, it returns the appropriate status code and (optionally) the error description in the response body.