[REST API] - Error 45468: PATCH Request Rejected When Including general_attributes.type
search cancel

[REST API] - Error 45468: PATCH Request Rejected When Including general_attributes.type

book

Article ID: 449186

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine Automic SaaS Automic Automation CA Automic Operations Manager

Issue/Introduction

When attempting to update an object, a PATCH request is rejected with error code 45468 if the general_attributes.type field is included in the request body. This rejection occurs even if the submitted value is identical to the object's currently stored value.

Steps to Reproduce

  • Perform a GET request to retrieve the object's content: GET /{client_id}/objects/{object_name}

  • The API returns a payload that includes the general_attributes.type field.

Excerpt from the GET response:

     "general_attributes": {
       "type": "VARA",
       "name": "TEST_PATCH_TYPE",
       "sub_type": "STATIC",
       "minimum_ae_version": "11.2"
  • Send a PATCH request to modify the same object, leaving the general_attributes.type field in the JSON body, which fails with the below error

Error message from the Patch response:

400 Bad Reques

{
 "code": 45468,
 "error": "Changing the value of  property 'type' is not allowed for patch methods.",
 "details": "No detail information available."
}

Environment

Release: v24.x, 26.x

Component: Automation Engine

Cause

DE209495

Resolution

Workaround

To successfully update the object, ensure that general_attributes.type is entirely removed from your JSON payload before sending the PATCH request. 

Solution:

Update to a fix version listed below or a newer version if available.

Fix version:

Component(s): Automation Engine

Automation.Engine 24.4.6 - TBA

Automation.Engine 26.1.0 - TBA

Additional Information

Desc: A problem has been fixed that prevents the REST-endpoint to handle the parameter for type properly.

Note: This Knowledge Base article will be updated as additional findings, fixes, or recommendations become available. Subscribe to this article to receive notifications on future updates related to this issue.