OAPI: add operation deleteJob

This commit is contained in:
Sybren A. Stüvel 2023-01-04 01:07:43 +01:00
parent f413a40f4e
commit 23afbfbea2

View File

@ -722,6 +722,27 @@ paths:
content:
application/json:
schema: { $ref: "#/components/schemas/Job" }
delete:
operationId: deleteJob
summary: >
Request deletion this job, including its tasks and any log files.
The actual deletion may happen in the background.
No job files will be deleted (yet).
tags: [jobs]
parameters:
- name: job_id
in: path
required: true
schema: { type: string, format: uuid }
responses:
"204":
description: Default response, deletion has been triggered.
default:
description: Unexpected error.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/api/v3/jobs/{job_id}/last-rendered:
summary: Obtain info about the last-rendered images for this job.