Comments

Represents the comments for a scoresheet score.

URI
/api/v10/scoresheets/ID/scores/ID/comments

GET Get comments

Retrieve the score comments.

This API request returns comments as a JSON encoded string or null, if no comments are stored.

Syntax
GET /api/v10/scoresheets/123/score/321/comments
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/v10/scoresheets/123/scores/321/comments"

Response headers

HeaderValueDescription
Content-Typeapplication/jsonThe media type of the resource
Content-Length1234The size of the response body in bytes

Response codes

Response codeDescription
200 OKThe comments were successfully returned
404 Not FoundThe scoresheet does not have this score

Example response

Response
"Some comments"

PUT Add comments

Set the comments of a scoresheet score to the provided text.

Syntax
PUT /api/v10/scoresheets/123/scores/321/comments
Host: apply.example.edu
Authorization: DREAM apikey="..."

Raw request body

The request body must contain a valid JSON string — comments enclosed in double quotes. The allowed length is up to 512 characters.

You cannot set comments to an empty value. Use the DELETE method for that.

Request body
"Some comments"

Example request

Request
curl
curl \
  -X PUT \
  -H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
  -d '"Some comments"' \
  "https://apply.example.edu/api/v10/scoresheets/123/scores/321/comments"

Response headers

HeaderValueDescription
Content-Typetext/plainThe media type of the resource
Content-Length0The size of the response body in bytes

Response codes

Response codeDescription
204 No ContentThe comments were successfully saved
404 Not FoundThe scoresheet does not have this score
400 Bad RequestThe comments text was not valid (empty or too long)

DELETE Delete comments

Delete the comments for a scoresheet score.

Syntax
DELETE /api/v10/scoresheets/123/scores/321/comments
Host: apply.example.edu
Authorization: DREAM apikey="..."

Example request

Request
curl
curl \
  -X DELETE \
  -H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
  "https://apply.example.edu/api/v10/scoresheets/123/scores/321/comments"

Response headers

HeaderValueDescription
Content-Typetext/plainThe media type of the resource
Content-Length0The size of the response body in bytes

Response codes

Response codeDescription
204 No ContentThe comments were successfully cleared
404 Not FoundThe scoresheet does not have this score