Updates the details of a GeoJSON shape
put/admin/config/shapes/{shapeId}
Updates the details of a GeoJSON shape.
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}
Name | Type | Required | Description |
---|---|---|---|
If-Match | integer | true | Specifies the version number of the GeoJSON shape that is to be edited. |
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 | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Headers | Schema |
400 | Bad Request | The request is malformed or contains invalid parameter values. | Schema | |
404 | Not Found | The GeoJSON shape does not exist. | Schema | |
412 | Precondition Failed | The request refers to an out-of-date version of the GeoJSON shape. | Schema | |
428 | Precondition Required | The request is missing the If-Match header. | Schema |