Get job status

Retrieves the status of a long-running job

Request

GET https://www.activityinfo.org/resources/jobs/{jobId}

Successful response

application/json

object
id string The job's id required
userId string The id of the user who started the job required
descriptor object The job descriptor used to start this job required
state string The job's current state Values:
STARTED
The job has started processing.
COMPLETED
The job has completed successfully.
FAILED
The job has failed.
required
jobResult object required
percentComplete float required
error object If the job state is FAILED, the reason for the failure. optional

Error responses

Status Code Error Code Description
401 AUTHENTICATION_REQUIRED The request must be authenticated
403 FORBIDDEN Permission denied
404 NOT_FOUND The resource could not be found
410 DELETED The resource has been deleted

Example

curl -u anything:YOUR_API_TOKEN \
  https://www.activityinfo.org/resources/jobs/ahBlfmFjdGl2aXR5aW5mb2V1chALEgNKb2IYgICAzd390wkM
Next item
Get original database tree