Reference code
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 the reference code for the applicant.
/api/v9/applicants/ID/referenceGET Get a reference code
A request with the GET verb returns the JSON-encoded reference value for this applicant. Note that the value appears to be a double-quoted value, but is a JSON string literal in the strict sense. If there is no reference value, null is returned.
A reference value can be anything, usually it is the applicant’s ID or code in another related system, for example the applicant’s student ID in the Study Information System (SIS).
GET /api/v9/applicants/123/reference
Host: apply.example.edu
Authorization: DREAM apikey="..."Example request
curl \
-X GET \
-H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
"https://apply.example.edu/api/v9/applicants/123/reference"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 reference value was successfully returned |
Example response
"ABC123"PUT Set a reference code
When making a PUT request, the contents of the request body will be stored as the new reference value for the applicant in question.
The body must be a JSON encoded string literal, this means that it has to be double-quoted like "ABC123", not just ABC123. A minimum of 3 and a maximum 16 characters are allowed and the reference value can only contain uppercase letters, numbers, dots, dashes and slashes.
The reference code also needs to be unique. An error is returned if this code has already been assigned to another applicant.
PUT /api/v9/applicants/123/reference
Host: apply.example.edu
Authorization: DREAM apikey="..."Example request
curl \
-X PUT \
-d '"ABC123"' \
-H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
"https://apply.example.edu/api/v9/applicants/123/reference"Response headers
| Header | Value | Description |
|---|---|---|
Content-Type | text/plain | Media type of the resource |
Content-Length | 0 | Size of the response body in bytes |
Response codes
| Response code | Description |
|---|---|
204 No Content | The reference value was successfully stored |
400 Bad Request | This reference is already assigned to another applicant, or another error, see the error description for details |