Task status

Represents the status of a task created for an application.

URI
/api/v10/applications/ID/tasks/ID/status

GET Get the task status

Retrieve the text of the status set for a task.

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

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 status was successfully returned
404 Not FoundThe application does not have this task

Example response

Response
"I am preparing the documents for submission."

PUT Set the task status

Set a status for a task.

This API request checks if the provided status is defined in the task template settings. If the status is not defined, the API request sets the Other status for the task and saves the provided text as status details.

Syntax
PUT /api/v10/applications/123/tasks/1/status
Host: apply.example.edu
Authorization: DREAM apikey="..."

Raw request body

The request body must contain a valid JSON string literal enclosed in double quotes. The allowed string length is up to 50 characters.

Request body
"The task has been completed"

Example request

Request
curl
curl \
  -X PUT \
  -H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
  -d '"The task has been completed"' \
  "https://apply.example.edu/api/v10/applications/123/tasks/1/status"

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 status was successfully set.
400 Bad RequestAn invalid status.
400 Bad RequestAn invalid status.
Please make sure that status is a valid JSON string with quotes.
404 Not FoundThe application does not have this task.

See Also