A request with the GET
verb returns the offer type about the application offer in question.
GET /api/applications/123/offers/321/type Host: apply.example.edu Authorization: DREAM apikey="..."
Content-Type: application/json Content-Length: 1234
200 OK | The offer type is returned successfully |
404 Not Found | Application does not have this offer |
"Conditionally accepted"
{ "id": 18, "type": "/api/v4/applications/offers/types/18" }
Set the offer type to the application offer (identified by it's ID) in question. This will check if the given type is a valid offer type that can be used in the system. On successful validation of the given type, it will be assigned as the type of the application offer in question.
PUT /api/applications/123/offers/321/type Host: apply.example.edu Authorization: DREAM apikey="..."
This will be set as the type of the application offer in question, upon successful validation.
18
"Conditionally accepted"
Content-Type: text/plain Content-Length: 0
200 OK | Status was successfully set |
400 Bad Request | Invalid offer type. |
400 Bad Request | Invalid status. Please make sure that status is a valid JSON string with quotes. |
404 Not Found | Application does not have this offer |