Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
api:api_scoresheets_id_scores_id_points [2021/09/09 14:29] – created Lauriapi:api_scoresheets_id_scores_id_points [2024/07/30 11:50] (current) – external edit 127.0.0.1
Line 56: Line 56:
 | ''404 Not Found'' | Scoresheet does not have this score | | ''404 Not Found'' | Scoresheet does not have this score |
 | ''400 Bad Request'' | The points value did not pass the validation tests or is not a JSON string with double quotes. | | ''400 Bad Request'' | The points value did not pass the validation tests or is not a JSON string with double quotes. |
 +
 +
 +===== DELETE =====
 +
 +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/scoresheets/123/scores/321/points
 +  Host: apply.example.edu
 +  Authorization: DREAM apikey="..."
 +
 +==== Response headers ====
 +
 +  Content-Type: text/plain
 +  Content-Length: 0
 +
 +==== Response codes ====
 +
 +| ''204 No Content'' | The points were successfully cleared |
 +| ''404 Not Found'' | Scoresheet does not have this score |