Offer attachment

Represents a single offer attachment.

Syntax
/api/v10/applications/ID/offers/ID/attachments/ID
Host: apply.example.edu
Authorization: DREAM apikey="..."

GET Get an offer attachment

Retrieve the metadata associated with an offer attachment.

If the attachment is generated from a letterhead, the API request also returns the letterhead URI.

This API request is provided only for the sake of completeness. Typically, to retrieve information about offer attachments, you will:

  1. Retrieve the entire list of offer attachments using
    GET /api/v10/applications/ID/offers/ID/attachments.
  2. Download the needed resources using
    GET /api/v10/applications/ID/offers/ID/attachments/ID/download.
Syntax
GET /api/v10/applications/123/offers/321/attachments/100
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/attachments/100"

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 attachment record was found
404 Not FoundThis attachment does not belong to this offer

Example response

Response
{
  "id": 100,
  "letterhead": "/api/v10/letterheads/10",
  "download": "/api/v10/applications/123/offers/321/attachments/100/download"
}