Cancel a job
POST/jobs/{id}/cancel
Stops reading and looking up rows. The rows already answered are kept.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id:string
The job’s id.
Responses
Section titled “Responses”The job, stopping.
application/json
A job as GET /jobs/{id} shows it, and as it is kept on disk.
completed_at: optionalintegerformat: int64
Unix seconds, once the job stops.
created_at:integerformat: int64
Unix seconds.
endpoint:string
The lookup every row of a job runs.
error: optionalstring
Why a failed job stopped.
expires_at: optionalintegerformat: int64
When the results are deleted. Set once the job stops.
id:string
input_format:string
A job’s file format: CSV, or one JSON object a line.
output_format:string
A job’s file format: CSV, or one JSON object a line.
results_url:string
status:string
Where a job is: running, or stopped and how.
summary:object
Rows answered so far.
Properties
failed:integer
Rows answered with an error.
succeeded:integer
Rows answered with a 200.
total:integer
Example
{
"endpoint": "geocode",
"input_format": "csv",
"output_format": "csv",
"status": "running"
}Headers
Section titled “Headers”X-Request-Id: optionalstring
ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.
No job has this id, or it expired.
application/problem+json
Problem
Error response, an RFC 9457 problem document.
detail: optionalstring
Human-readable explanation. Absent on 500 errors.
error_code:string
Stable error code. Branch on this.
invalid_params: optionalArray<object>
Rejected parameters. Present only when the error is about parameters.
A rejected parameter.
Properties
name:string
Parameter name.
reason:string
Why it was rejected.
request_id: optionalstring
ID the request is logged under. Include it in bug reports.
status:integerformat: int32
title:string
Name of the HTTP status. Do not branch on it.
type:string
URI identifying the problem type. Currently always about:blank.
Example
{
"detail": "q must not be empty",
"error_code": "invalid_query",
"invalid_params": [
{
"name": "limit",
"reason": "must be at most 50"
}
],
"request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}Headers
Section titled “Headers”X-Request-Id: optionalstring
ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.
Method not allowed. The route accepts POST only.
application/problem+json
Problem
Error response, an RFC 9457 problem document.
detail: optionalstring
Human-readable explanation. Absent on 500 errors.
error_code:string
Stable error code. Branch on this.
invalid_params: optionalArray<object>
Rejected parameters. Present only when the error is about parameters.
A rejected parameter.
Properties
name:string
Parameter name.
reason:string
Why it was rejected.
request_id: optionalstring
ID the request is logged under. Include it in bug reports.
status:integerformat: int32
title:string
Name of the HTTP status. Do not branch on it.
type:string
URI identifying the problem type. Currently always about:blank.
Example
{
"detail": "q must not be empty",
"error_code": "invalid_query",
"invalid_params": [
{
"name": "limit",
"reason": "must be at most 50"
}
],
"request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}Headers
Section titled “Headers”Allow: optionalstring
The methods this route accepts.
Example
POSTX-Request-Id: optionalstring
ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.

