Skip to Main Content

Cloud Platform

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

HCM REST API Workers problem with Query

Martin...Dec 1 2021 — edited Dec 1 2021

Hi,
On this page:
REST API for Oracle HCM Cloud (0 Bytes)There is an example of a call to retrieve workers by names.LastName

GET "https://<host>:<port>/hcmRestApi/resources/11.13.18.05/workers?q=names.LastName='Doe'"

Every time I call the API in this form I receive the response:
400 Bad Request
URLrequestparameterqwithvaluenames.LastName='Doe'isnotvalid.

I have also tried this with publicWorker:
/hcmRestApi/resources/11.13.18.05/publicWorkers?q=LastName='Doe'
Successfully returns a matched record
/hcmRestApi/resources/11.13.18.05/publicWorkers?q=LastName like 'Do%'
Returns a zero result list

Am I misunderstanding the call with the q= parameter or is there an issue?

Thanks

This post has been answered by Martin... on Feb 3 2024
Jump to Answer
Comments
Post Details
Added on Dec 1 2021
1 comment
53 views