Extra score

Represents the extra score set for an offer.

URI
/api/v10/applications/ID/offers/ID/score/extra

GET Get the extra score

Retrieve the extra score set for an offer.

Syntax
GET /api/v10/applications/123/offers/321/score/extra
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/applications/123/offers/321/score/extra"

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 extra score was successfully returned
404 Not FoundThe application does not have this offer

Example response

Response
"82.46"

PUT Set the extra score

Set the extra score for an offer.

The API request checks if the specified score is a valid value and assigns it to the application offer upon successful validation.

Syntax
PUT /api/v10/applications/123/offers/321/score/extra
Host: apply.example.edu
Authorization: DREAM apikey="..."

Raw request body

The request body must contain a decimal value with 2 decimal points separated by a dot, enclosed in double quotes. Upon successful validation, the provided value is saved as the extra score for the offer.

Request body
"25.50"

Example request

Request
curl
curl \
  -X PUT \
  -H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
  -d '"25.50"' \
  "https://apply.example.edu/api/v10/applications/123/offers/321/score/extra"

Response headers

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

Response codes

Response codeDescription
200 OKThe extra score was successfully set.
400 Bad RequestInvalid input.
400 Bad RequestAn invalid score. The score must be a decimal value with 2 decimal points separated by a dot.
404 Not FoundThe application does not have this offer.

DELETE Delete the extra score

Clear the extra score for an offer.

Syntax
DELETE /api/v10/applications/123/offers/321/score/extra
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/applications/123/offers/321/score/extra"

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 score was successfully cleared
400 Bad RequestInvalid input