BizKitHub
DokumentacePrůzkumník APICron Run/api/v1/cron-run/{id}/finish
postCron RunVeřejné 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

Parametry

1 v cestě · JSON tělo

Parametry v cestě

· 1
idstringPovinné

Run id returned by /cron-run/start.

Délka: 16
PříkladaB3dE5fG7hJ9kL1m

Tělo požadavku

application/json
status"success" | "error"Volitelné

Outcome of the run. Defaults to success.

messagestring | nullVolitelné

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

Délka: 0–20000
reportobject | nullVolitelné

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

exitCodestring | integerVolitelné
Jedna z 2 možností:
Varianta 1
stringinteger
Výchozí: 0
Varianta 2
integer
Rozsah: -32768–32767
peakMemoryMbstring | integerVolitelné
Jedna z 2 možností:
Varianta 1
stringinteger
Výchozí: 0
Varianta 2
integer
Rozsah: 0–∞
heapUsedMbstring | integerVolitelné
Jedna z 2 možností:
Varianta 1
stringinteger
Výchozí: 0
Varianta 2
integer
Rozsah: 0–∞

Schéma odpovědi

1 zdokumentovaný stavový kód

200Úspěch

Tato odpověď nemá JSON tělo.

Ukázka odpovědi

application/json
{
  "success": true
}

Ukázka požadavku

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 '{}'

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč