Global Entity Matcher (GEM)

Cancel matching job

Request access

Purpose

Cancel a matching job that has not finished yet. Only jobs with status REQUESTED or IN_PROGRESS can be canceled.

Request data

HTTP method: PATCH

  • Constants and parameters enclosed in curly brackets {} must be replaced with their values.
  • See the following Path parameters and Request body sections with the required and optional parameters tables for these values.

URL format

patch
URL format
https://api.tomtom.com/maps/orbis/platform/gem/jobs/{job_id}

URL example

patch
URL example
https://api.tomtom.com/maps/orbis/platform/gem/jobs/123456789

curl command example

patch
curl command example
curl -X PATCH "https://api.tomtom.com/maps/orbis/platform/gem/jobs/123456789" \
-H "tomtom-api-key: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_AUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"action": "CANCEL"
}'

Request headers

HeaderRequiredDescription
tomtom-api-keyYesYour TomTom API key
AuthorizationYesBearer token from Azure CLI
Content-TypeYesMust be application/json

Path parameters

ParameterTypeRequiredDescription
job_idintegerYesThe unique identifier of the job

Request body

{
"action": "CANCEL"
}

Request body parameters

ParameterTypeRequiredDescription
actionstringYesAction to perform on the job. Supported value: CANCEL

Response data

The request is accepted with HTTP status 202 and the endpoint returns the job details with status CANCELED. Canceling a job that was already canceled has no effect and returns the job details unchanged.

Response example

{
"job_type": "ROAD_MATCHING",
"overture_release": "2026-01-21.0",
"input_filename": "test_data.parquet",
"job_id": 123456789,
"requested_at": "2026-02-18T10:38:59.031762Z",
"result_filename": null,
"statistics": null,
"error_messages": null,
"status": "CANCELED",
"storage_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}

Response fields

FieldTypeDescription
job_idinteger (int64)Unique identifier for the job
storage_idstring (uuid)Storage where input/output files are located
input_filenamestringName of the input file
result_filenamestringName of the output file. null until status is SUCCESS
job_typestringType of matching performed
overture_releasestringOverture Maps release version for ROAD_MATCHING jobs, see Releases
statusstringCurrent job status. CANCELED after a successful cancellation
requested_atstringISO 8601 timestamp of job creation
statisticsobjectMatching statistics. null unless status is SUCCESS
error_messagesstring[]List of error messages describing why the job failed. null unless status is FAILED

Error responses

HTTP StatusErrorCauseSolution
400Bad RequestInvalid request body or unsupported actionUse {"action": "CANCEL"} as the request body
401UnauthorizedInvalid credentialsRefresh API key or token
404Not FoundJob not foundVerify job ID
409ConflictJob already finished (SUCCESS or FAILED) and cannot be canceledOnly jobs with status REQUESTED or IN_PROGRESS can be canceled
500Internal Server ErrorServer-side issueRetry the request