I send this:

{"type": "GeometryFilter", "field_name": "geometry", "config": "{"type":"Polygon","coordinates":[[[-117.187103,34.015008],[-117.187103,34.097057],[-117.084399,34.097057],[-117.084399,34.015008],[-117.187103,34.015008]]]}"}]

I get this 400 error:

{"type":"Polygon","coordinates":[[[-117.187103,34.015008],[-117.187103,34.097057],[-117.084399,34.097057],[-117.084399,34.015008],[-117.187103,34.015008]]]}' is not of type 'object'

1 Answer 1


It should be:

{"type": "GeometryFilter", "field_name": "geometry", "config": {"type":"Polygon","coordinates":[[[-117.187103,34.015008],[-117.187103,34.097057],[-117.084399,34.097057],[-117.084399,34.015008],[-117.187103,34.015008]]]}}

You've incorrectly quoted the GeoJSON portion of the filter and there is an extra ] at the end.

Note that you also need to wrap this in the full JSON:

{"item_types": ["PSScene4Band"], "filter": {"type": "GeometryFilter", "field_name": "geometry", "config": {"type": "Polygon", "coordinates": [[[-117.187103, 34.015008], [-117.187103, 34.097057], [-117.084399, 34.097057], [-117.084399, 34.015008], [-117.187103, 34.015008]]]}}}

  • Thanks, I'm doing this in an app that generates the code so it isn't easy to validate, much appreciated. Feb 12, 2018 at 14:57
  • @BruceHarold, please mark the question as answered if this solved your problem!
    – bosth
    Feb 12, 2018 at 16:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.