Decline Specified Patches Deprecating soon

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Initiates the decline action for the specified patches across all managed systems.

This API endpoint is deprecating soon

This API endpoint will be permanently removed on October 2026, please migrate to the new endpoint.

View new endpoint   >
Endpoints

Request URL

https://{server-hostname}:8383/api/1.4/patch/declinepatch

Scope

PatchMgmt.CREATECopied!

Header

Authorization: d92d4xxxxxxxxxxxxx15f52

- Request Body

application/json
JSON Object
Hide Sub-Attributes
patchidsarrayMandatory

Array of patch IDs to decline. Max 1000 entries.

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request POST \
  --url https://appdomain/api/1.4/patch/declinepatch \
  --header 'Authorization:  d92d4xxxxxxxxxxxxx15f52' \
  --header 'content-type: application/json' \
  --data '{"patchids":[112,113]}'

Sample Request Body

Decline patches by IDs

Copied!
  {
    "patchids": [
      112,
      113
    ]
  }
                
Show full

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Hide Sub-Attributes
message_typestring

Action identifier: declinepatch

message_responseJSON Object

Decline result payload

Show Sub-Attributes
declinepatchJSON Object

Decline action result

Show Sub-Attributes
statusstring

Action result message (e.g., Initiated Successfully)

message_versionstring

API version: 1.4

statusstring

Overall operation status: success

- HTTP code 400

Response Body - application/json
JSON Object
Hide Sub-Attributes
error_codestring

Error code: DECLINE_FAILED_CODE for decline failures

errorstring

Error type: DECLINE_FAILED

error_descriptionstring

Detailed failure reason: insufficient permissions, invalid patch list, or empty patches

Possible Response Codes

200HTTP code
400HTTP code

Sample Response: HTTP 200

Decline initiated successfully

Copied!
  {
    "message_type": "declinepatch",
    "message_response": {
      "declinepatch": {
        "status": "Initiated Successfully"
      }
    },
    "message_version": "1.4",
    "status": "success"
  }
                
Show full

Sample Response: HTTP 400

User lacks All Managed Computer role

Copied!
  {
    "error_description": "Verify if the user is granted permissions to manage all computers!",
    "error_code": "DECLINE_FAILED_CODE",
    "error": "DECLINE_FAILED"
  }
                
Show full

No patch IDs provided in request

Copied!
  {
    "error_description": "No Patches Specified",
    "error_code": "DECLINE_FAILED_CODE",
    "error": "DECLINE_FAILED"
  }
                
Show full

Duration: 1 minute | Threshold: 30 | Lock period: 5 minutes

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.