Cancel a batch
Changed onStop a batch from starting new pages. In-progress pages finish, and unused credits are refunded.
Request
- Base URLhttps://api.context.dev/v1
- URLhttps://api.context.dev/v1/batch/{batch_id}/cancel
- AuthHTTP bearer
Path parameters
ID of the batch to retrieve or cancel.
Response
Cancellation started. Poll GET /batch/{batch_id} until the batch settles.
Example response
{
"id": "batch_9f2c8a",
"tags": [
"docs"
],
"crawl": {
"source": {
"url": "https://example.com/docs"
},
"max_pages": 500,
"url_pattern": "^https://example\\.com/docs/"
},
"input": {
"reserved": 24817,
"submitted": 25000,
"duplicates": 183
},
"progress": {
"succeeded": 4120,
"failed": 37,
"pending": 20660
},
"credits": {
"reserved": 24817
},
"page_errors": [
{
"code": "WEBSITE_ACCESS_ERROR",
"count": 204
}
]
}Changes
- warning
added the new
WEBSITE_BLOCKEDenum value to theresponse property for the response status - warning
added the new
WEBSITE_BLOCKEDenum value to theresponse property for the response status - warning
added the new
WEBSITE_BLOCKEDenum value to theresponse property for the response status
- warning
- warning
added the new
COLD_DOMAIN_TIMEOUT_TOO_LOWenum value to theresponse property for the response status - warning
added the new
COLD_DOMAIN_TIMEOUT_TOO_LOWenum value to theresponse property for the response status - warning
added the new
COLD_DOMAIN_TIMEOUT_TOO_LOWenum value to theresponse property for the response status - info
added
subschema #1: Start URLsubschema #2: Sitemapto the////response propertyanyOflist for the response status - info
removed
subschema #1subschema #2from the////response propertyanyOflist for the response status
- warning