BizKitHub
DocsAPI explorerCron Run/api/v1/cron-run/{id}/finish
postCron RunPublic API v1

/api/v1/cron-run/{id}/finish

Closes the run (late: false). No further log entries are accepted. null in optional fields means "not set". A run that already timed out still accepts ONE finish: the response is 200 with late: true, status: "timeout" (the run stays a timeout), lateStatus and lateFinishDate; the late result is shown on the run in the admin and a follow-up CRN_RUN_LATE entry tells whether the job eventually succeeded. A run finished with status: "error" writes an error entry to the organisation log. Counts into the cron monitor quota of the API key (10,000 requests per hour, separate from other endpoints). Every response carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (Unix seconds).

cron-runpostApiV1Cron-runByIdFinish

Parameters

1 path · JSON body

Path parameters

· 1
idstringRequired

Run id returned by /cron-run/start.

Length: 16
ExampleaB3dE5fG7hJ9kL1m

Request body

application/json
status"success" | "error"Optional

Outcome of the run. Defaults to success.

messagestring | nullOptional

Final message, e.g. the error text. null = none.

Length: 0–20000
reportobject | nullOptional

Summary of the run, e.g. { "processed": 120 }, up to 16 KB. null = none.

exitCodestring | integerOptional
One of 2:
Variant 1
stringinteger
Default: 0
Variant 2
integer
Range: -32768–32767
peakMemoryMbstring | integerOptional
One of 2:
Variant 1
stringinteger
Default: 0
Variant 2
integer
Range: 0–∞
heapUsedMbstring | integerOptional
One of 2:
Variant 1
stringinteger
Default: 0
Variant 2
integer
Range: 0–∞

Response schema

1 documented status code

200Success

This response has no JSON body.

Response example

application/json
{
  "success": true
}

Request example

POST /api/v1/cron-run/{id}/finish

post
curl -X POST "https://api.bizkithub.com/api/v1/cron-run/aB3dE5fG7hJ9kL1m/finish" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{}'

Need an API key?

Every public BizKitHub API endpoint authenticates with an API key.

Get an API key