Returns information on a specified department.
Use this operation to get information on a QAComplete department specified by its ID.
Authentication
Basic authentication using a user’s login and password. See Authentication for details.
Security Rights
The authenticating user must have access to QAComplete projects.
Request Format
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
Host: yourserver.com
Connection: keep-alive
Accept: application/json
Authorization: Basic am9obkBleGFtcGxlLmNvbTpwQHNzd29yZA==
A sample request made by using cURL:
curl -u [email protected]:p@ssword -H "Accept: application/json" http://yourserver.com/service/api/v1/depts/8162
Response Format
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
Content-Type: application/json
Content-Length: 260
{
"id": 8162,
"company_id": 8426,
"dept_name": "Your Company Name",
"update_user_id": 1234,
"date_created": "2015-03-10T13:25:55.1500000",
"date_updated": "2015-03-10T13:25:55.1500000",
"page_size": 25-06-29T11:23:52.3970000",
}
The authenticating user’s rights to access departments.
Access rights:
- 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.
Error responses
If the operation fails, it returns the appropriate status code and (optionally) the error description in the response body.