Matriculation number
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 matriculation number for the applicant.
URI
/api/v9/applicants/ID/matriculationGET Get a matriculation number
A request with the GET verb returns the JSON-encoded matriculation number 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 matriculation number, null is returned.
Syntax
GET /api/v9/applicants/123/matriculation
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/applicants/123/matriculation"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 matriculation number was successfully returned |
Example response
Response
curl
"ABC123"PUT Set a matriculation number
When making a PUT request, the contents of the request body will be stored as the new matriculation number 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 matriculation number can only contain lowercase and uppercase letters, numbers, dots, dashes and slashes.
Syntax
PUT /api/v9/applicants/123/matriculation
Host: apply.example.edu
Authorization: DREAM apikey="..."Example request
Request
curl
curl \
-X PUT \
-d '"ABC123"' \
-H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
"https://apply.example.edu/api/v9/applicants/123/matriculation"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 matriculation number was stored successfully |
400 Bad Request | Invalid matriculation number, see the error description for details |