Skip to content

Stop Bulkjob

GEThttps://kg.diffbot.com/kg/v3/enhance/bulk/{bulkjobId}/stop

Stop an active Enhance Bulkjob.

Example

bash
curl --get 'https://kg.diffbot.com/kg/v3/enhance/bulk/abc123/stop?token=<DIFFBOT_TOKEN>'
json
{
  "status": "STOPPED",
  "message": "Bulkjob stopped"
}

API Definition

Generated from v3.0.0 of the ENHANCE API OpenAPI specification.

Stop an active Enhance Bulkjob

Request

Authentication
tokenquery
Cache and insert token into example requests (15d expiry)
Path parameters
bulkjobIdstring required

Enhance Bulkjob ID

Example request

bash
curl --request GET \
  --url 'https://kg.diffbot.com/kg/v3/enhance/bulk/<bulkjobId>/stop?token=<DIFFBOT_TOKEN>' \
  --header 'Accept: application/json'

Response

200Bulkjob status after the stop request
statusstring

Bulkjob recovery status

messagestring

Bulkjob recovery status message

400Invalid bulkjobId
codeinteger (int32)

Status code (same as the HTTP status code)

messagestring

Status message

request_ctxobject

Request context

queryobject | object | string

Submitted query

typestring

Diffbot entity type

namestring[]

Name of the entity to enhance. Parameter can be used with types Person and Organization

urlstring[]

Origin or homepage URI of entity to enhance. Parameter can be used with types Person and Organization

locationstring

Location of the entity to enhance. Parameter can be used with types Person and Organization

ipstring

IP address of the entity to enhance. Parameter can be used with types Person and Organization

phonestring

Phone of the entity to enhance. Parameter can be used with types Person and Organization

descriptionstring

Description of the entity to enhance. Parameter can be used with types Person and Organization

emailstring[]

Email of the entity to enhance. Parameter can be used only with type Person

employerstring

Employer of the entity to enhance. Parameter can be used only with type Person

titlestring

Title of the entity to enhance. Parameter can be used only with type Person

schoolstring

School of the entity to enhance. Parameter can be used only with type Person

query_ctxobject

Query context. Example: submitted query parameters etc.

bulkjobStatusobject

Bulkjob status

job_idstring

Bulkjob Id

namestring

Bulkjob name

refreshboolean

Is Refresh enabled for this job?

searchstring

Is Search enabled for this job?

messagestring

Bulkjob status message

jobs_totalinteger (int32)

Number of jobs in bulkjob

jobs_completedinteger (int32)

Number of jobs completed in bulkjob.

statusstring

Status of Bulkjob. One of {NOT_STARTED, IN_PROCESS, COMPLETE, COMPLETE_WITH_FAILURES, STOPPED, ERROR_FINALIZING, UNKNOWN}

estimate_remaining_timeinteger (int64)

Estimated remaining time for bulkjob to complete (in seconds). null if job is completed or not started.

submit_time_msinteger (int64)

Bulkjob submit time

start_time_msinteger (int64)

Bulkjob start time

completed_time_msinteger (int64)

Bulkjob completed time

total_resultsinteger (int32)

Total results

bulkjobIdstring
totalJobsinteger (int32)
finishedJobsinteger (int32)
estimateRemainingTimeSecinteger (int64)
submitTimeMsinteger (int64)
startTimeMsinteger (int64)
completedTimeMsinteger (int64)
totalResultsinteger (int32)
fileSizeBytesinteger (int64)

Size of download file in bytes

reportsobject[]

Coverage reports generated for this bulkjob

reportIdstring

Coverage Report ID

statusstring

Status of report generation. One of {NOT_STARTED, IN_PROCESS, COMPLETE, UNKNOWN}

formatstring

Export format

specstring

The spec defines the columns to export. This is applicable for csv, xls and xslx formats.

Export spec specifies how to export the entity JSON to a csv. A simple export spec looks like name;summary. To specify more complex export spec, including specifying how many of a list of industries to return, or the ideal employment record, see Exporting Columnar Format and JsonPath Filtering.

exportfilestring
exportSeparatorstring

Separator for multi-value fields when exporting columnar results

filterstring

Semi-colon separated path filter to filter response json. You can use a simple dot notation skills.name or a JsonPath expression such as $.name;$.locations.country.name. For more advanced options, see JsonPath Filtering for syntax.

onlyMatchesboolean

Return only records that have a match

errorboolean

true if error

401Token not specified or other client errors
requestIdstring

Identifier of the rejected request, also returned in the X-Diffbot-RequestId header

codeinteger (int32)

Status code (same as the HTTP status code)

messagestring

Status message

404Bulkjob not found
codeinteger (int32)

Status code (same as the HTTP status code)

messagestring

Status message

request_ctxobject

Request context

queryobject | object | string

Submitted query

typestring

Diffbot entity type

namestring[]

Name of the entity to enhance. Parameter can be used with types Person and Organization

urlstring[]

Origin or homepage URI of entity to enhance. Parameter can be used with types Person and Organization

locationstring

Location of the entity to enhance. Parameter can be used with types Person and Organization

ipstring

IP address of the entity to enhance. Parameter can be used with types Person and Organization

phonestring

Phone of the entity to enhance. Parameter can be used with types Person and Organization

descriptionstring

Description of the entity to enhance. Parameter can be used with types Person and Organization

emailstring[]

Email of the entity to enhance. Parameter can be used only with type Person

employerstring

Employer of the entity to enhance. Parameter can be used only with type Person

titlestring

Title of the entity to enhance. Parameter can be used only with type Person

schoolstring

School of the entity to enhance. Parameter can be used only with type Person

query_ctxobject

Query context. Example: submitted query parameters etc.

bulkjobStatusobject

Bulkjob status

job_idstring

Bulkjob Id

namestring

Bulkjob name

refreshboolean

Is Refresh enabled for this job?

searchstring

Is Search enabled for this job?

messagestring

Bulkjob status message

jobs_totalinteger (int32)

Number of jobs in bulkjob

jobs_completedinteger (int32)

Number of jobs completed in bulkjob.

statusstring

Status of Bulkjob. One of {NOT_STARTED, IN_PROCESS, COMPLETE, COMPLETE_WITH_FAILURES, STOPPED, ERROR_FINALIZING, UNKNOWN}

estimate_remaining_timeinteger (int64)

Estimated remaining time for bulkjob to complete (in seconds). null if job is completed or not started.

submit_time_msinteger (int64)

Bulkjob submit time

start_time_msinteger (int64)

Bulkjob start time

completed_time_msinteger (int64)

Bulkjob completed time

total_resultsinteger (int32)

Total results

bulkjobIdstring
totalJobsinteger (int32)
finishedJobsinteger (int32)
estimateRemainingTimeSecinteger (int64)
submitTimeMsinteger (int64)
startTimeMsinteger (int64)
completedTimeMsinteger (int64)
totalResultsinteger (int32)
fileSizeBytesinteger (int64)

Size of download file in bytes

reportsobject[]

Coverage reports generated for this bulkjob

reportIdstring

Coverage Report ID

statusstring

Status of report generation. One of {NOT_STARTED, IN_PROCESS, COMPLETE, UNKNOWN}

formatstring

Export format

specstring

The spec defines the columns to export. This is applicable for csv, xls and xslx formats.

Export spec specifies how to export the entity JSON to a csv. A simple export spec looks like name;summary. To specify more complex export spec, including specifying how many of a list of industries to return, or the ideal employment record, see Exporting Columnar Format and JsonPath Filtering.

exportfilestring
exportSeparatorstring

Separator for multi-value fields when exporting columnar results

filterstring

Semi-colon separated path filter to filter response json. You can use a simple dot notation skills.name or a JsonPath expression such as $.name;$.locations.country.name. For more advanced options, see JsonPath Filtering for syntax.

onlyMatchesboolean

Return only records that have a match

errorboolean

true if error

500Internal Server Error
codeinteger (int32)

Status code (same as the HTTP status code)

messagestring

Status message

request_ctxobject

Request context

queryobject | object | string

Submitted query

typestring

Diffbot entity type

namestring[]

Name of the entity to enhance. Parameter can be used with types Person and Organization

urlstring[]

Origin or homepage URI of entity to enhance. Parameter can be used with types Person and Organization

locationstring

Location of the entity to enhance. Parameter can be used with types Person and Organization

ipstring

IP address of the entity to enhance. Parameter can be used with types Person and Organization

phonestring

Phone of the entity to enhance. Parameter can be used with types Person and Organization

descriptionstring

Description of the entity to enhance. Parameter can be used with types Person and Organization

emailstring[]

Email of the entity to enhance. Parameter can be used only with type Person

employerstring

Employer of the entity to enhance. Parameter can be used only with type Person

titlestring

Title of the entity to enhance. Parameter can be used only with type Person

schoolstring

School of the entity to enhance. Parameter can be used only with type Person

query_ctxobject

Query context. Example: submitted query parameters etc.

bulkjobStatusobject

Bulkjob status

job_idstring

Bulkjob Id

namestring

Bulkjob name

refreshboolean

Is Refresh enabled for this job?

searchstring

Is Search enabled for this job?

messagestring

Bulkjob status message

jobs_totalinteger (int32)

Number of jobs in bulkjob

jobs_completedinteger (int32)

Number of jobs completed in bulkjob.

statusstring

Status of Bulkjob. One of {NOT_STARTED, IN_PROCESS, COMPLETE, COMPLETE_WITH_FAILURES, STOPPED, ERROR_FINALIZING, UNKNOWN}

estimate_remaining_timeinteger (int64)

Estimated remaining time for bulkjob to complete (in seconds). null if job is completed or not started.

submit_time_msinteger (int64)

Bulkjob submit time

start_time_msinteger (int64)

Bulkjob start time

completed_time_msinteger (int64)

Bulkjob completed time

total_resultsinteger (int32)

Total results

bulkjobIdstring
totalJobsinteger (int32)
finishedJobsinteger (int32)
estimateRemainingTimeSecinteger (int64)
submitTimeMsinteger (int64)
startTimeMsinteger (int64)
completedTimeMsinteger (int64)
totalResultsinteger (int32)
fileSizeBytesinteger (int64)

Size of download file in bytes

reportsobject[]

Coverage reports generated for this bulkjob

reportIdstring

Coverage Report ID

statusstring

Status of report generation. One of {NOT_STARTED, IN_PROCESS, COMPLETE, UNKNOWN}

formatstring

Export format

specstring

The spec defines the columns to export. This is applicable for csv, xls and xslx formats.

Export spec specifies how to export the entity JSON to a csv. A simple export spec looks like name;summary. To specify more complex export spec, including specifying how many of a list of industries to return, or the ideal employment record, see Exporting Columnar Format and JsonPath Filtering.

exportfilestring
exportSeparatorstring

Separator for multi-value fields when exporting columnar results

filterstring

Semi-colon separated path filter to filter response json. You can use a simple dot notation skills.name or a JsonPath expression such as $.name;$.locations.country.name. For more advanced options, see JsonPath Filtering for syntax.

onlyMatchesboolean

Return only records that have a match

errorboolean

true if error