/objects/{username} REST endpoint brings back 45109 and 404 errors
search cancel

/objects/{username} REST endpoint brings back 45109 and 404 errors

book

Article ID: 399465

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine CA Automic One Automation Automic SaaS

Issue/Introduction

When attempting to reach the {client_id}/objects/{username} REST API endpoint, the following is the response from the REST API:

{
  "code" : 45109,
  "error" : "The requested resource cannot be found.",
  "details" : "No detail information available."
}

When trying to look at the client 100 AUTOMIC/AUTOMIC user using an endpoint URL like https://rest-api-server.example.com:port/ae/api/v1/0100/objects/AUTOMIC/AUTOMIC

The REST API logs show something like:

20250530/135905.334 - 53     U00045098 Method 'GET', URL: 'https://rest-api-server.example.com:port/ae/api/v1/0100/objects/AUTOMIC/AUTOMIC', received from IP: '10.0.0.1' 'User: UC/UC'
20250530/135905.352 - 53     U00045099 The server replied with following status: '404'  

Environment

21.0 and above

Resolution

The / in the username must be changed to be url encoded, replaced with %2F.  So for example, for the user AUTOMIC/AUTOMIC, you must use AUTOMIC%2FAUTOMIC for the object name like this:

https://rest-api-server.example.com:port/ae/api/v1/0100/objects/AUTOMIC%2FAUTOMIC