Skip to main content
POST
/
environment
/
{environmentId}
/
cleanFailedJobs
Clean failed jobs within an environment
curl --request POST \
  --url https://api.qovery.com/environment/{environmentId}/cleanFailedJobs \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "job_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}'
{
  "clean_job_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "clean_kubernetes_jobs": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Token API are generated by Qovery to manage machine to machine interaction and do not have a TTL. Prefix your token with "Token ". Curl Example: curl https://console.qovery.com/organization -H "Authorization: Token $qovery_token"

Path Parameters

environmentId
string
required

Body

application/json
job_ids
string<uuid>[]

Response

200 - application/json

OK

clean_job_ids
string<uuid>[]
clean_kubernetes_jobs
string[]