Trash or restore a job
delete moves the job to the trash: it leaves every list, keeps its data and can be restored. normal restores it. hidden and permanently_deleted are refused (422 INVALID_STATUS), and a job in either state is 404 for both targets. Asking for the current state writes nothing and answers changed: false. Every change is audited. With OAuth the acting user is the authorizing user; an API key names changed_by (422 ACTOR_REQUIRED without it). Requires jobs:write.
Body
statusstringrequirednormal or delete
changed_ bystringAPI keys only: the acting user's ID
Parameters
idstringrequiredpathJob ID
Response
Status set, or unchanged
Invalid id or body
Invalid API key
Insufficient scope, or changed_by is not the authorizing user
Job not found
Invalid status, or no acting user
Internal server error
Authorization
bearer_ authhttp (bearer) in headerAPI key or OAuth access token in Authorization header
Scopes: jobs:write
oauth2_ authoauth2OAuth authorization code flow with mandatory S256 PKCE.
Scopes: jobs:write
apikey_ authapiKey in queryAPI key in query string
Scopes: jobs:write
