Skip to content

How to Create a Dataset

Steps to reproduce

  1. Log In to our platform (see Login).
  2. Create a New Project or use one created before.
  3. Get the id_project and id_phase returned by the previous step to use it later.
  4. Configure your dataset info in the Insert Dataset endpoint.

Request example

Endpoint

POST /api/v1/dataset/create_dataset

Body

{
  "id_project": 1,
  "id_phase": 1,
  "name_asset": "Parcels",
  "name_attribute": "Altitude",
  "input_alg_parameters": {
    "mask": {
    "type": "FeatureCollection",
    "features": [
        {
        "type": "Feature",
        "properties": {},
        "geometry": {
            "coordinates": [
            [
                [
                -3.9376455720326646,
                40.90015125369763
                ],
                [
                -3.9376455720326646,
                40.88889826847819
                ],
                [
                -3.9210280227697467,
                40.88889826847819
                ],
                [
                -3.9210280227697467,
                40.90015125369763
                ],
                [
                -3.9376455720326646,
                40.90015125369763
                ]
            ]
            ],
            "type": "Polygon"
        }
        }
    ]
    },
  },
}

Successful Response

{
  "message": {
    "id_dataset": 1
  },
  "code": 200
}