Page 1 of 1

Retrieve subset of jobs

Posted: Sun Feb 20, 2022 3:05 am
by zoes
Hiya,

Is it possible to request only jobs that are either in "Pending" or "Progress" stage? And similarly with quotes? If no, is this something that is being considered for future updates?

I see the jobs endpoint has a `search` parameter, can this be used to achieve a similar result? How exactly does it work? It accepts "any" or "all".
Search result must have a match on all provided fields or a match on any of the provided fields.
What is it matching with?

Cheers,
Zoe.

Re: Retrieve subset of jobs

Posted: Sun Feb 20, 2022 10:25 pm
by PremMarkeli
Hi Zoe,

Please add parameter "Stage=Progress" or "Stage=Pending" on the URL.

For example,

Code: Select all

api/v1.0/companies/0/jobs/?Stage=Progress

Regards.

Re: Retrieve subset of jobs

Posted: Sun Mar 13, 2022 11:49 pm
by zoes
Thank you for the information.

How can I ask for jobs with EITHER "Stage=Progress" or "Stage=Pending".

I have tried "Stage=Progress&Stage=Pending" and "Stage=Progress,Pending".

Re: Retrieve subset of jobs

Posted: Mon Mar 14, 2022 12:22 am
by PremMarkeli
Hi,

You can achieve that result using the following

Code: Select all

api/v1.0/companies/0/jobs/?Stage=in(Progress,Pending)
and you can find more info on searching routes here
https://developer.simprogroup.com/apido ... -resources

Regards.