Skip to content
OpenGeocodeOpenGeocodeOpenGeocodeDownloads

Cancel a job

POST/jobs/{id}/cancel

Stops reading and looking up rows. The rows already answered are kept.

id:string

The job’s id.

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.

Allowed values:geocodereverse

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.

Allowed values:csvjsonl

output_format:string

A job’s file format: CSV, or one JSON object a line.

Allowed values:csvjsonl

results_url:string

status:string

Where a job is: running, or stopped and how.

Allowed values:runningcompletedcancelledfailed

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"
}

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.

<= 128 characters

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.

Allowed values:invalid_queryinvalid_coordinatelimit_too_largemalformed_parametermalformed_bodynot_foundmethod_not_allowedtoo_many_itemsbody_too_largeunsupported_media_typeinternal_errorbusytimeoutpack_outdated

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

>= 400<= 599

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"
}

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.

<= 128 characters

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.

Allowed values:invalid_queryinvalid_coordinatelimit_too_largemalformed_parametermalformed_bodynot_foundmethod_not_allowedtoo_many_itemsbody_too_largeunsupported_media_typeinternal_errorbusytimeoutpack_outdated

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

>= 400<= 599

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"
}

Allow: optionalstring

The methods this route accepts.

Example
POST

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.

<= 128 characters