Skip to content
getgeolens.com

Create Feature

POST
/datasets/{dataset_id}/features/
curl --request POST \
--url https://example.com/api/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/features/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "geometry": { "type": "example", "coordinates": [ "example" ] }, "properties": {} }'

Insert a new GeoJSON feature into a dataset.

dataset_id
required
Dataset Id
string format: uuid
Media type application/json
FeatureCreate

GeoJSON-style feature for insertion.

object
geometry
required
GeoJSONGeometry

A GeoJSON geometry object (RFC 7946).

object
type
required
Type
string
coordinates
required
Coordinates
Array
properties
Any of:
object
key
additional properties
any
Example generated
{
"geometry": {
"type": "example",
"coordinates": [
"example"
]
},
"properties": {}
}

Successful Response

Example generated
example

Bad request — invalid payload

Unauthorized — missing or invalid credentials

Forbidden — caller lacks write access

Not found

Conflict — resource state prevents the operation

Validation error

Internal server error