SaveDataset Object API Sample

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

curl --location 'https://mgis-apiv2.mappls.

com/sat/saveDataset/object' \
--header 'accept: application/json' \
--header 'Authorization: bearer <OAuth_Token_using the CI and CS that we shared in
the sample>' \
--form 'appendStatus="true"' \
--form 'datasetNme="your_datasetName_here"' \
--form 'geoJSON="{
\"type\": \"FeatureCollection\",
\"features\": [
{
\"type\": \"Feature\",
\"geometry\": {
\"type\": \"Point\",
\"coordinates\": [
79.2688987,
27.5508705
]
},
\"properties\": {
\"Citizen\": \"Kunal\",
\"citizenId\": \"123\",
\"uImage\": \"https://mmi-api-team.s3.ap-south-1.amazonaws.com/API-
Team/harGharTiranga/flag.png\"
}
},
{
\"type\": \"Feature\",
\"geometry\": {
\"type\": \"Point\",
\"coordinates\": [
79.2688987,
27.5508705
]
},
\"properties\": {
\"Citizen\": \"Mohit\",
\"citizenId\": \"345\",
\"uImage\": \"https://mmi-api-team.s3.ap-south-1.amazonaws.com/API-
Team/harGharTiranga/flag.png\"
}
}
]
}"'

You might also like