Flag (global)

Represents a single flag set up in the system. For a flag assigned to a specific application, see Flag.

URI
/api/v9/applications/flags/ID

GET Get a flag

Use the HEAD verb to test if this flag exists. A request with the GET verb returns some additional information about the flag (e.g created date).

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

Response headers

HeaderValueDescription
Content-Typeapplication/jsonMedia type of the resource
Content-Length1234Size of the response body in bytes
Response codeDescription
200 OKThe flag data was successfully returned
404 Not FoundThe flag does not exist

Example response

Response
{
  "id": 1,
  "created": "2025-03-14T13:28:51+00:00",
  "name": "Awaiting interview"
}

DELETE Delete a flag

Remove the flag from the system, also removing it from all applications.

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

Response headers

HeaderValueDescription
Content-Typetext/plainMedia type of the resource
Content-Length0Size of the response body in bytes
Response codeDescription
204 No ContentThe flag was successfully deleted
404 Not FoundThe flag was not found