POST
/
v0
/
indices
Create a new index
curl --request POST \
  --url https://api.pixxel.space/v0/indices \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "NDVI",
  "description": "This formula will give insights about vegetation",
  "rescale": [
    0,
    1
  ],
  "expression": "(B04-B08)/(B04+B08)",
  "colormap": "rplumbho",
  "lens_satellite_id": "0002a3a3-00a2-4b55-842b-44d8202c6d60",
  "expression_type": "index",
  "type": "custom"
}'
{
  "bands": [
    "B01",
    "B02",
    "B03"
  ],
  "colormap": "rplumbho",
  "created_at": "2022-11-14 12:55:49.125928+00:00",
  "description": "This formula will give insights about vegetation",
  "expression": "(B04-B08)/(B04+B08)",
  "expression_type": "index",
  "id": "e9767554-550e-4464-a677-b8cf096073ab",
  "lens_satellite_id": "0002a3a3-00a2-4b55-842b-44d8202c6d60",
  "name": "NDVI",
  "rescale": [
    0,
    1
  ],
  "satellite_name": "Sentinel-2",
  "type": "custom",
  "updated_at": "2022-11-14 12:55:49.125928+00:00"
}

Authorizations

Authorization
string
header
required

Body

application/json

Index creation parameters

The body is of type object.

Response

201
application/json

Created

The response is of type object.