When using our API docs, we need to specify a query param as without any query params this will remove the parenthesis {} from the CURL request and return a 400 bad request in the response body.
We see this error for our people endpoints Search for employees when we have not set showInactive = 'true' or 'false' - this field is mandatory:
Alternatively, we can also add a field ID to the endpoint CURL:
-
We can retrieve field IDs for our People endpoints by using: Get all company fields
Doing either of the above will prevent this error: