Search filter on custom field

15 views
Skip to first unread message

Victor Abresol

unread,
Mar 20, 2024, 8:40:00 AMMar 20
to CATS API v3
Hello there !

I want to filter a list of jobs based on a custom field which is a checkbox.

The field is the following one (v3/jobs/custom_fields/45775) :

{
    "id"45775,
    "data_item_type""job",
    "name""Test field",
    "comment"null,
    "field": {
        "type""checkbox"
    },
    "_links": {
        "self": {
            "href""/jobs/custom_fields/45775"
        }
    }
}

When i make a job search request (v3//jobs/search) with the following body :
{"field":"title","filter":"contains","value":"test"}

I have the following result :
{
    "message""Validation failed.",
    "errors": [
        {
            "property""filters",
            "field""45775",
            "filter""exactly",
            "message""That filter cannot be used on this field"
        }
    ]
}
But according to the documentation I should be able to use the filter exactly with a custom checbox field. The search works fine in an uncustom field for exemple the title, but it doesn't seem to work with customs fields. Do you how to search jobs based on a custom checbkox field ? Thanks you !

Victor Abresol

unread,
Apr 8, 2024, 3:12:42 AMApr 8
to CATS API v3
Hello,

I hope you are all doing well.

Any one have a suggestion on this topics ? How to filter a list with customs fields ?

Best regards,

Victor.
Reply all
Reply to author
Forward
0 new messages