Note
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
Represent a single note on the applicant.
URI
/api/v9/applicants/ID/notes/IDGET Get a note
A request with the GET verb returns information about one specific (sticky) note on the applicant record.
Syntax
GET /api/v9/applicants/123/notes/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/applicants/123/notes/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 note data was successfully returned |
Example response
Response
curl
{
"created": "1970-01-01T00:00:01+00:00",
"removed": null,
"colour": "Yellow",
"pinned": false,
"collapsed": false,
"Notes": "Some comments"
}Response
curl
"Some comments"PUT Update a note
Update one specific applicant (sticky) note.
Syntax
PUT /api/v9/applicants/123/notes/321
Host: apply.example.edu
Authorization: DREAM apikey="..."Parameters
| Name | Required/Optional | Description | Notes |
|---|---|---|---|
colour | Optional | Specify the colour of the (sticky) note: Yellow, Orange, Salmon, Green, Blue, Violet | |
color | Optional | An alias for colour | If both colour and color are specified, then colour is preferred. |
Raw request body
The comments have to be a proper JSON string token. In a JSON string only space is allowed per the specification, newlines, for example, have to be encoded.
Request body
"Some notes\nAnother line"Example request
Request
curl
curl \
-X PUT \
-H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
-d '"Your notes here \nAnother line"' \
"https://apply.example.edu/api/v9/applicants/123/notes/321"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 note was successfully saved |
400 Bad Request | Invalid notes, please make sure that status is a valid JSON string with quotes |