Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
api:api_scoresheets_id_scores [2021/01/21 12:51] – external edit 127.0.0.1api:api_scoresheets_id_scores [2021/09/09 14:13] (current) – [Response example] Lauri Elevant
Line 24: Line 24:
 ==== Response example ==== ==== Response example ====
  
-<code javascript>+<code>
 { {
     "1": {     "1": {
Line 63: Line 63:
 } }
 </code> </code>
 +
 +
 +===== POST =====
 +
 +Append an application to the scoresheet in question. If the application is already on this scoresheet, it will just update the score (and optionally, the comments).
 +
 +
 +
 +
 +==== Syntax ====
 +
 +  POST /api/scoresheets/123/scores
 +  Host: apply.example.edu
 +  Authorization: DREAM apikey="..."
 +  
 +==== Parameters ====
 +
 +^ Name ^  ^ Description ^
 +| ''application'' | **Required** | An application ID to add |
 +| ''points'' | **Required** | The points to set for this scoresheet score. Validation depends on the scoresheet settings. In case of a mapped-type value, it takes the numeric equivalent. |
 +| ''comments'' | Optional | Up to 512 characters of comments. May be omitted or left empty in which case it has no effect (including leaving any existing comments in place). |
 +
 +==== Response headers ====
 +
 +  Content-Type: application/json
 +  Content-Length: 0
 +
 +==== Response codes ====
 +
 +| ''201 Created'' | New applicant/lead was created |