Administrator

Represents a single administrator in the system.

URI
/api/v9/administrators/ID

GET Get an administrator

Retrieve the administrator data.

Syntax
GET /api/v9/administrators/123
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/administrators/123"

Response headers

HeaderValueDescription
Content-Typeapplication/jsonMedia type of the resource
Content-Length1234Size of the response body in bytes

Response codes

Response codeDescription
200 OKThe administrator data was successfully returned
404 Not FoundThe admin was not found

Example response

Response
{
  "id": 10001,
  "name": "John Smith",
  "email": "j.smith@email.com",
  "phone": "+32 472 85 1234",
  "function": "Admissions administrator"
  "roles": [
    {
      "id": 2,
      "name": "Admissions administrator"
    },
    {
      "id": 7,
      "name": "Courses administrator"
    }
  ]
}