New field to be added as a filter

59 views
Skip to first unread message

Tushar Chahal

unread,
Nov 21, 2023, 7:21:20 AM11/21/23
to CATS API v3
Hi Team,

I have gone through the API documentation https://docs.catsone.nl/api/v3/ and confirm we are using the same APIs as advised here only. Also, this is working fine and we need to add a field as a filter from Catsone side.

Search Jobs with out filter(working fine)
curl --location 'https://api.catsone.nl/v3/jobs/search?query=Dealer&page=1&per_page=100' \

Search Jobs with description filter(working fine)
curl --location 'https://api.catsone.nl/v3/jobs/search?page=1&per_page=100' \
--header 'authorization: Token 0xxxxx' \
--header 'Content-Type: application/json' \
--data '{"field":"description","filter":"contains","value":"Doelstelling"}'

Search Jobs with is_published filter(not working)
curl --location 'https://api.catsone.nl/v3/jobs/search?page=1&per_page=100' \
--header 'authorization: Token 0xxxxxxx' \
--header 'Content-Type: application/json' \
--data '{"field":"is_published","filter":"contains","value":"true"}'


Issue: Search Jobs with is_published filter is not working because Catsone has not added this field as a filter. We need to filter our jobs on this fields and we want Catsone to add is_published as a filter field.

Tushar Chahal

unread,
Nov 23, 2023, 3:43:10 AM11/23/23
to CATS API v3
Hi Team,

Any update on this please?

Tushar Chahal

unread,
Nov 28, 2023, 3:48:04 AM11/28/23
to CATS API v3
Hello Team,
A quick response will be highly appreciated on this please.

Regards,
Tushar

Steve Gagnon

unread,
Nov 29, 2023, 10:05:24 AM11/29/23
to CATS API v3
Sorry for the delay. I just began work on adding this field to the job search API and expect it will be available today.

Steve Gagnon

unread,
Nov 29, 2023, 10:39:41 AM11/29/23
to CATS API v3
After a bit of investigation I found the field does exist. It only works with the "exactly" filter and the values are true or false. I'll update the API docs.

Search Jobs with is_published filter
curl --location 'https://api.catsone.nl/v3/jobs/search?page=1&per_page=100' \
 --header 'authorization: Token 0xxxxxxx' \
 --header 'Content-Type: application/json' \
 --data '{"field":"is_published","filter":"exactly","value":true}'

Tushar Chahal

unread,
Dec 4, 2023, 9:13:39 AM12/4/23
to CATS API v3
Thanks Steve,
Tested this and its working as expected. Once again thanks for adding this quickly.
Reply all
Reply to author
Forward
0 new messages