GET/depts/{DeptId}

Applies to QAComplete 14.5, last modified on August 06, 2024

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:

http://{server}/rest-api/service/api/v1/depts/{DeptId}

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",
}
       

Error responses

If the operation fails, it returns the appropriate status code and (optionally) the error description in the response body.

See Also

Departments REST API Reference

Highlight search results