Use this API to change the status of deployment jobs.
Parameter |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
action |
Mandatory |
string |
Specify whether you want to enable or disable the deployment jobs. Available values: Enabled, Disabled |
Request body |
Mandatory |
- |
ids (string): Specify the job IDs for which you want to update the status. |
API request
curl -X POST
"https://<QualysBaseURL>/pm/v1/deploymentjobs/update/status/Enabled" -H "accept: application/json" -H "Authorization: Bearer <<Jwt Token>>" -H "Content-Type: application/json"
Request Body - Specify the job IDs to change the status of the deployment jobs
{
"ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}
Response
[
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "PATCH API NOTIFICATION",
"status": "success"
}
]