Creates a new GeoJSON shape
post/admin/config/shapes
Creates a new reusable GeoJSON shape. The request will be rejected if a GeoJSON shape already exists with the same identifier.
1{2 "id": "82d0cf19-0b9a-444b-b10d-35ea3724c3a8",3 "solution": "Law Enforcement",4 "name": "Colorado",5 "group": "states",6 "shape": {7 "type": "Polygon",8 "coordinates": [9 [10 [11 -109.03930664062501,12 37.0024155817673913 ],14 [15 -102.05200195312501,16 36.9936412825130617 ],18 [19 -102.07397460937501,20 40.9880619856730921 ],22 [23 -109.03930664062501,24 40.9880619856730925 ],26 [27 -109.03930664062501,28 37.0024155817673929 ]30 ]31 ]32 }33}
A GeoJSON shape for use in the shape filter.
Name | Type | Required | Description |
---|---|---|---|
id | string | false | The unique identifier of the GeoJSON shape. |
solution | string | false | The name of the solution. Default: default |
name | string | false | The optional name of the GeoJSON shape. |
group | string | false | The optional group of the GeoJSON shape. |
shape | object | false | The GeoJSON representation of the shape. The shape can be any GeoJSON geometry or a GeoJSON geometry collection. |
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | The request succeeded. | Headers | Schema |
400 | Bad Request | The request is malformed or contains invalid parameter values. | Schema | |
409 | Conflict | A GeoJSON shape already exists with the given identifier. | Schema |