Flag

Represents a single flag assigned to the application. For a specific flag available in the system, see Flag (global).

URI
/api/v9/applications/ID/flags/ID

GET Get a flag

A request with the GET verb returns some additional information about the flag association (date assigned etc.). Use the HEAD verb to test if the application in question has this flag.

This request does not return the flag itself, but rather represents the relationships between the application and the flag. Follow the flag URI in the response to retrieve further information about the flag in question.

Syntax
GET /api/v9/applications/123/flags/1
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/v9/applications/123/flags/1"

Response headers

HeaderValueDescription
Content-Typeapplication/jsonMedia type of the resource
Content-Length1456Size of the response body in bytes

Response codes

Response codeDescription
200 OKThe flag was successfully assigned
404 Not FoundThe flag does not exist
404 Not FoundThe flag was not assigned to this application

Example response

Response
{
  "assigned": "2025-12-09T13:26:29+00:00",
  "flag": "/api/v9/applications/flags/2"
}

PUT Assign a flag

Assign a flag (identified by its ID) to the application in question.

This request requires that the flag already exists. Use POST /api/v9/applications/flags to create a flag first, then this API request will allow you to set the flag (identified by its code) to any number of applications.

In other words, this will not create a new flag, but create a relationship (association) between an existing flag and an application.

Syntax
PUT /api/v9/applications/123/flags/1
Host: apply.example.edu
Authorization: DREAM apikey="..."

Example request

Request
curl
curl \
  -X PUT \
  -H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
  "https://apply.example.edu/api/v9/applications/123/flags/1"

Response headers

HeaderValueDescription
Content-Typetext/plainMedia type of the resource
Content-Length0Size of the response body in bytes

Response codes

Response codeDescription
200 OKThe flag was successfully assigned
404 Not FoundThe flag does not exist

DELETE Delete a flag

Remove the flag (identified by its ID) from the application in question.

This request does not delete the flag itself. It only removes its association with the application in question.

Syntax
DELETE /api/v9/applications/123/flags/1
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/v9/applications/123/flags/1"

Response headers

HeaderValueDescription
Content-Typetext/plainMedia type of the resource
Content-Length0Size of the response body in bytes

Response codes

Response codeDescription
204 No ContentThe flag was successfully deleted
404 Not FoundThe flag does not exist
404 Not FoundThe flag was not set to this application