Administrators

Represents a list of all administrators in the system.

URI
/api/v9/administrators

GET List administrators

List administrator accounts in the system along with basic data.

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

Response headers

HeaderValueDescription
Content-Typeapplication/jsonMedia type of the resource
Content-Length1234Size of the response body in bytes
X-Count15Number of registered administrators

Response codes

Response codeDescription
200 OKThe list of administrators was successfully returned

Example response

Response
{
  "10001": {
    "id": 10001,
    "name": "John Smith",
    "email": "j.smith@example.com",
    "phone": "+32 472 85 1234",
    "function": "Admissions administrator",
    "roles": [
      {
        "id": 2,
        "name": "Admissions administrator"
      },
      {
        "id": 7,
        "name": "Courses administrator"
      }
    ]
  },
  "10002": {
    "id": 10002,
    "name": "Amanda Jones",
    "email": "a.jones@example.com",
    "phone": "+32 472 85 1234",
    "function": "Content administrator",
    "roles": [
      {
        "id": 6,
        "name": "Content administrator"
      }
    ]
  },
  "10003": {
    "id": 10003,
    "name": "James Weber",
    "email": "j.weber@example.com",
    "phone": "+32 472 85 1234",
    "function": null,
    "roles": [
      {
        "id": 1,
        "name": "Superuser (all permissions)"
      }
    ]
  }
}