Action disabled: media

/api/applications/ID/offers/ID/type

HEAD, GET

A request with the GET verb returns the offer type about the application offer in question.

Syntax

GET /api/applications/123/offers/321/type
Host: apply.example.edu
Authorization: DREAM apikey="..."

Response headers

Content-Type: application/json
Content-Length: 1234

Response codes

200 OK The offer type is returned successfully
404 Not Found Application does not have this offer

Response example

API version >= 4
"Conditionally accepted"
API version <= 3
{
    "id": 18,
    "type": "/api/v4/applications/offers/types/18"
}

PUT

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.

Syntax

PUT /api/applications/123/offers/321/type
Host: apply.example.edu
Authorization: DREAM apikey="..."

Raw request body

This will be set as the type of the application offer in question, upon successful validation.

API version >= 4
18
API version <= 3
"Conditionally accepted"

Response headers

Content-Type: text/plain
Content-Length: 0

Response codes

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