Skip to content

CreateElement must check if an image is provided when a polygon is also provided

Refs https://gitlab.com/arkindex/requests/-/issues/474

The CreateElement seems to give 500 when an API user provides a polygon without an image.

It should raise a 400 with an explicit message "You need to provide an image ID when specifying a polygon"

Please add a unit test for that case