Delete the Deployment Job

Use this API to delete specified jobs using the job IDs.

DELETE/pm/v1/deploymentjobs

Request Body ParametersRequest Body Parameters

Parameter

Mandatory/Optional

Data Type

Description

ids

Mandatory

string

Specify the job IDs that you want to delete.

Sample - Delete the specified jobsSample - Delete the specified jobs

API request

    curl -X DELETE 
    "https://<QualysBaseURL>/pm/v1/deploymentjobs" -H "accept: application/json" -H "Authorization: Bearer <<jwt token>>" -H "Content-Type: application/json" -d "{\"ids\":[\"6020ba0f-5833-42d3-9721-2ca70570be4b\"]}"

Request Body - Specify the job IDs to delete deployment jobs

    
        {
    "ids": [
        "string"
    ]
}
    

Response

    
        [
    {
        "id": "6020ba0f-5833-42d3-9721-2ca70570be4b",
        "name": "Patch Tuesday _3",
        "status": "success"
    }
]