Custom appsAPIPOST /validate/filter

This endpoint performs filter validation. It can be useful when app doesn't know about what filter value looks like. For example, if your app receives sql query as filter you may want to check is that query is valid.

Request

Request body contains source, account information and filter information:

{
    "source": "sql",
    "filter": {
        "query": "select * from my_table"
    },
    "acccount": {
        "username": "test_user",
        "password": "!test$!_user"
    }
}

Response

If the filter is valid, the app should return HTTP status 200 or 204.

If the account is invalid, the app should return HTTP status 400 (Bad request) with a simple JSON object containing an error message:

{"error": "Your filter is incorrect!"}