Points

Represents the points of the scoresheet score.

URI
/api/v9/scoresheets/ID/scores/ID/points

GET Get points

A request with the GET verb returns the score’s points as JSON encoded string (or null, if there are no points set). Note that 0 points is returned as “0” as it is a perfectly valid number of points.

Syntax
GET /api/v9/scoresheets/123/scores/321/points
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/scoresheets/123/scores/321/points"

Response headers

HeaderValueDescription
Content-Typeapplication/jsonMedia type of the resource
Content-Length1234Size of the response body in bytes

Response codes

Response codeDescription
200 OKThe points value was successfully returned
404 Not FoundThe scoresheet does not have this score

Example response

Response
"90.00"

PUT Set points

Set the points of a scoresheet score to a particular value. This will still run all validation checks and will not permit illegal point values to be entered that fall out of the accepted range as set in the scoresheet settings. If setting mapped values (for example if 5 = Excellent), the numeric value must be sent.

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

Raw request body

Write the JSON encoded points into the request body. Note that it is a JSON string, so it has to be enclosed in double quotes. You can set 0 points (which is perfectly valid) as “0” or “0.0” or “0.00”, as you please. But you cannot clear the points using this request. Please use the DELETE verb for that.

Request body
"3.14"

Example request

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

Response headers

HeaderValueDescription
Content-Typetext/plainMedia type of the resource
Content-Length0Size of the response body in bytes

Response codes

Response codeDescription
204 No ContentThe points were successfully saved
404 Not FoundThe scoresheet does not have this score
400 Bad RequestThe points value did not pass the validation tests or is not a JSON string with double quotes.

DELETE Delete points

Delete the points of a scoresheet score, resetting it to “not scored” which is distinct from a perfectly valid score of 0 points.

Syntax
DELETE /api/v9/scoresheets/123/scores/321/points
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/v9/scoresheets/123/scores/321/points"

Response headers

HeaderValueDescription
Content-Typetext/plainMedia type of the resource
Content-Length0Size of the response body in bytes

Response codes

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