Flag
API version
Select a version to change the base URI
in syntax and code examples. Learn about versions:
in syntax and code examples. Learn about versions
Represents a single flag assigned to an application. For a specific flag configured in DreamApply, see Flag (global).
/api/v10/applications/ID/flags/IDGET 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.
GET /api/v10/applications/123/flags/1
Host: apply.example.edu
Authorization: DREAM apikey="..."Example request
curl \
-X GET \
-H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
"https://apply.example.edu/api/v10/applications/123/flags/1"Response headers
| Header | Value | Description |
|---|---|---|
Content-Type | application/json | The media type of the resource |
Content-Length | 1456 | The size of the response body in bytes |
Response codes
| Response code | Description |
|---|---|
200 OK | The flag was successfully assigned |
404 Not Found | The flag does not exist |
404 Not Found | The flag was not assigned to this application |
Example 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:
- Use
POST/api/v10/applications/flagsto create a flag. - Use this API request to set the flag to any number of applications.
PUT /api/v10/applications/123/flags/1
Host: apply.example.edu
Authorization: DREAM apikey="..."Example request
curl \
-X PUT \
-H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
"https://apply.example.edu/api/v10/applications/123/flags/1"Response headers
| Header | Value | Description |
|---|---|---|
Content-Type | text/plain | The media type of the resource |
Content-Length | 0 | The size of the response body in bytes |
Response codes
| Response code | Description |
|---|---|
200 OK | The flag was successfully assigned |
404 Not Found | The 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.
DELETE /api/v10/applications/123/flags/1
Host: apply.example.edu
Authorization: DREAM apikey="..."Example request
curl \
-X DELETE \
-H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
"https://apply.example.edu/api/v10/applications/123/flags/1"Response headers
| Header | Value | Description |
|---|---|---|
Content-Type | text/plain | The media type of the resource |
Content-Length | 0 | The size of the response body in bytes |
Response codes
| Response code | Description |
|---|---|
204 No Content | The flag was successfully deleted |
404 Not Found | The flag does not exist |
404 Not Found | The flag was not set to this application |