This endpoint returns the status of each file type, including whether each has errors or warnings and a message if one exists.
/v1/check_status/?submission_id=123&type=appropriations
submission_id
: (required, integer) represents the ID of the submission to get statuses fortype
: (string) limits the results in the array to only contain the given file type. The following are valid values for this:fabs
- only for FABS submissionsappropriations
- Aprogram_activity
- Baward_financial
- Caward_procurement
- D1award
- D2cross
- cross-fileexecutive_compensation
- Esub_award
- F
{
"fabs": {
"status": "finished",
"message": "",
"has_errors": false,
"has_warnings": true,
"upload_progress": 78.4,
"validation_progress": null,
"file_name": "File A.csv",
"validation_last_updated": "2020-01-15 14:25:40.12345"
}
}
Response attributes change depending on the submission and type requested. If a specific type is requested, only one attribute matching the requested type will be included. If no type is specified and the submission is a DABS submission, all possible file types will be included. The possible attributes match the valid request types. See above for a full list.
The contents of each attribute are an dictionary containing the following keys:
status
: (string) indicates the current status of the file type. Possible values include:ready
: not yet starteduploading
: the file is uploadingrunning
: the jobs are runningfinished
: all associated jobs are completefailed
: one or more of the associated jobs have failed
message
: (string) the message associated with a job if there is onehas_errors
: (boolean) indicates if the file type has any errors in validationhas_warnings
: (boolean) indicates if the file type has any warnings in validationupload_progress
: (float) indicates the percent progress of the upload jobs of that type. If there are no upload jobs associated with the job type it will displaynull
validation_progress
: (float) indicates the percent progress of the validation jobs of that type. If there are no validation jobs associated with the job type it will displaynull
file_name
: (string) the name of the file associated with the job. If there is no name it will displaynull
validation_last_updated
: (string) the last time (in theMM/DD/YYYY HH:mm:ss
format) the validation job changed statuses, for example switching torunning
or completing. If there is no validation job (files E/F) it will displaynull
Possible HTTP Status Codes:
- 400:
- Missing
submission_id
parameter - Submission does not exist
- Invalid type parameter
- Missing
- 401: Login required
- 403: Permission denied, user does not have permission to view this submission