Differences

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

Link to this comparison view

api:api_scoresheets_id_scores_id_points [2021/09/09 14:29] – created Lauri Elevantapi:api_scoresheets_id_scores_id_points [2021/09/09 14:35] (current) Lauri Elevant
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 |