Department
API version
Select a version to change the base URI
in syntax and code examples. Learn about versions:
in syntax and code examples. Learn about versions
Represents a single department under the institution.
URI
/api/v9/institutions/ID/departments/IDGET Get a department
Retrieve information about a particular institution department.
Syntax
GET /api/v9/institutions/123/departments/321
Host: apply.example.edu
Authorization: DREAM apikey="..."Example request
Request
curl
curl \
-X GET \
-H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
"https://apply.example.edu/api/v9/institutions/123/departments/321"Response headers
| Header | Value | Description |
|---|---|---|
Content-Type | application/json | Media type of the resource |
Content-Length | 1234 | Size of the response body in bytes |
Response codes
| Response code | Description |
|---|---|
200 OK | The department data was successfully returned |
404 Not Found | The department was not found |
Example response
Response
{
"id": 1,
"name": "Department of Mechanical Engineering",
"country": "BE",
"location": "Antwerp",
"www": "https://engtech.edu/me"
}