Updates the details of a GeoJSON shape

put/admin/config/shapes/{shapeId}

Updates the details of a GeoJSON shape.

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}

Path Parameters

NameTypeRequiredDescription
shapeId
string
true

The identifier of the GeoJSON shape.

Header Parameters

NameTypeRequiredDescription
If-Match
integer
true

Specifies the version number of the GeoJSON shape that is to be edited.

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
200OK

The request succeeded.

HeadersSchema
400Bad Request

The request is malformed or contains invalid parameter values.

Schema
404Not Found

The GeoJSON shape does not exist.

Schema
412Precondition Failed

The request refers to an out-of-date version of the GeoJSON shape.

Schema
428Precondition Required

The request is missing the If-Match header.

Schema