Error: 45106 400 Bad Request during folder creation via REST API /objects endpoint in Automic Automation.
search cancel

Error: 45106 400 Bad Request during folder creation via REST API /objects endpoint in Automic Automation.

book

Article ID: 450387

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine Automic Automation Automic SaaS

Issue/Introduction

Folder creation attempts via the Automation Engine REST API fail with a 400 Bad Request error when following the "fold" example provided in the Swagger documentation.

Symptoms The following symptoms occur when attempting to create a folder using the example payload under the POST /{client_id}/objects endpoint:

  • The request returns HTTP/1.1 400 Bad Request.
  • The response contains error code 45106.
  • Error details state: "The request is invalid and cannot be processed by the Automation Engine."

Environment

  • Automic Automation Engine 24.x
  • Automic Automation Engine 26.x
  • REST API

Cause

A documentation defect in the Swagger UI incorrectly includes a folder creation example ("fold") under the general POST /{client_id}/objects endpoint. This endpoint is designed for standard objects; folder objects require a specialized endpoint.

Resolution

To create a folder via the REST API, use the correct endpoint as shown below:

  1. Direct the POST request to /{client_id}/folderobjects instead of /{client_id}/objects.
  2. Use the same JSON payload structure for the folder definition.
  3. Verify the response returns 200 OK.

Note: This issue is tracked under defect DE208881. It is targeted to be fixed in the following releases:

  • Automation.Engine 24.4.6 - TBA
  • Automation.Engine 26.1.0 - TBA

Public Title:
Incorrect example for creating a folder

Public Description:
An incorrect example for creating Folder objects was removed from the Swagger documentation.

Subscribe to this article to receive updates regarding the fix status.

Additional Information

For more details on REST API object management, refer to the Automic Automation Documentation.