Get Job by Id
GET/api/jobs/:id/
Get the job by its id. This endpoint can be used to check on the status and contents of a job. Jobs can have the following status:
- running (the
message
data will be filled in) - failed (the
error
data will be filled in) - success (the
result
data will be filled in) - cancelled
Request
Path Parameters
A unique integer value identifying this app job.
Responses
- 200
- 401
- 403
- application/json
- Schema
- Example (from schema)
Schema
The id of the job.
Possible values: non-empty
The kind of the job. Can be one of: 'result', 'result_pointer'
Possible values: [success
, cancelled
, failed
, running
]
The status of the job. Can be one of: ['success', 'cancelled', 'failed', 'running']
The completed time of the job.
error
object
Information related to a failed job.
Possible values: [error_code
, error_user
, error_timeout
]
The type of error, can be one of: ['error_code', 'error_user', 'error_timeout']
The error message.
Any fields that are invalid.
result
object
Information related to a successful job.
Result for WebView.
Result for IFCView.
Result for PDFView.
Result for MapView.
Result for DataView.
Result for ImageView.
Result for PlotlyView.
Result for GeometryView.
Result for DownloadButton.
Result for OptimizationButton.
Result for SetParamsButton.
message
object
Information related to a running job.
Possible values: [progress
, info
, warning
, success
]
The message for the user
The timestamp when the message was edit, can be null.
Percentage, between 0 and 100, can be null.
{
"uid": 0,
"kind": "string",
"status": "success",
"completed_at": "2024-06-11T11:45:44.579Z",
"error": {
"type": "error_code",
"message": "string",
"invalid_fields": {}
},
"result": {
"web": {},
"ifc": {},
"pdf": {},
"geojson": {},
"data": {},
"image": {},
"plotly": {},
"geometry": {},
"download": {},
"optimization": {},
"set_params": {}
},
"message": {
"message_type": "progress",
"message": "string",
"timestamp_epoch": 0,
"percentage": 0
}
}
No authentication found or authentication is not correct.
Specified path is not allowed
Permission evaluation:
Is Job Owner
Descriptions:
Is Job Owner
: Checks whether job is created by the requesting user.