Creates a new GeoJSON shape

post/admin/config/shapes
Internal-Use Only

Creates a new reusable GeoJSON shape. The request will be rejected if a GeoJSON shape already exists with the same identifier.

Request Samples

1

Response Samples

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.00241558176739
13 ],
14 [
15 -102.05200195312501,
16 36.99364128251306
17 ],
18 [
19 -102.07397460937501,
20 40.98806198567309
21 ],
22 [
23 -109.03930664062501,
24 40.98806198567309
25 ],
26 [
27 -109.03930664062501,
28 37.00241558176739
29 ]
30 ]
31 ]
32 }
33}

Request Body

A GeoJSON shape for use in the shape filter.

NameTypeRequiredDescription
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.

Responses

StatusMeaningDescription
201CreatedThe request succeeded.HeadersSchema
400Bad RequestThe request is malformed or contains invalid parameter values.Schema
409ConflictA GeoJSON shape already exists with the given identifier.Schema