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.
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"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."
}
Release: v24.x, 26.x
Component: Automation Engine
DE209495
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
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.