Flag

Represents a single flag assigned to an application. For a specific flag configured in DreamApply, see Flag (global).

URI
/api/v10/applications/ID/flags/ID

GET Get a flag

Retrieve information about the flag association for an application.

This API request does not return the flag itself. It represents a relationship between an application and a flag. Follow the flag URI in the response to retrieve further information about the flag.

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

Response headers

HeaderValueDescription
Content-Typeapplication/jsonThe media type of the resource
Content-Length1456The size 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/v10/applications/flags/2"
}

PUT Assign a flag

Assign a specific flag to an application.

This API request does not create a new flag. It creates a relationship (association) between an existing flag and an application. The flag to be assigned must already exist in DreamApply.

To assign a flag:

  1. Use POST /api/v10/applications/flags to create a flag.
  2. Use this API request to set the flag to any number of applications.
Syntax
PUT /api/v10/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/v10/applications/123/flags/1"

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 flag was successfully assigned
404 Not FoundThe flag does not exist

DELETE Delete a flag

Remove a flag from an application.

This API request does not delete the flag itself. It only removes an association between the flag and the application.

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

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 flag was successfully deleted
404 Not FoundThe flag does not exist
404 Not FoundThe flag was not set to this application

See Also