API reference/mGIS Analytics
POSTstatefulexact public snapshot

Uploads and publishes the subset of datasets on mGIS engine

/sat/saveDataset/subset

Generates and deploys subsets of existing datasets, filtered by specific conditions (either attribute-based or spatial), for subsequent utilization in manipulation, analysis, and visualization within the mGIS platform.

Exact public source snapshot

This operation is retained because its version-labelled public specification differs structurally from another generation. It is comparison evidence, not a promise of current support, compatibility, entitlement, or availability.

Call the operation

POSThttps://mgis-apiv2.mappls.com/sat/saveDataset/subset
Base URLhttps://mgis-apiv2.mappls.com/
Authenticationbearer
Journey rolecommand
Content typesmultipart/form-data

Parameters

NameLocationTypeDescriptionExample
No explicit parameters are declared by the source operation.

Body schema

FieldTypeDescriptionExample
datasetNmerequired
string

Name of the parent dataset which will be used to create sub-dataset

example
newDatasetNmerequired
string

Name of the sub-dataset which will be created from parent dataset

example
filter
string

WHERE clause which filters the parent dataset

id > 20
properties
string

Comma separated name of the columns that will be used to create sub-dataset [If not provided all the column will be used by default]

column1,column2,column3
polygonfillcolor
string

hex color without '#' of the polygon/s

f2e824
polygonfillopacity
string

opacity of polygon/s ranging from 0-1

0.7
linestrokecolor
string

hex color without '#' of the line/s

2ce622
linestrokewidth
string

width of the line/s in pixels

2
linestrokeopacity
string

opacity of line/s ranging from 0-1

0.5
pointfillcolor
string

hex color without '#' of the point/s

2266e3
pointfillopacity
string

opacity of point/s ranging from 0-1

0.8
pointsize
string

size of point/s in pixels

10
layerType
string

Type of the layer that can only be 'user' or 'admin'.

user,admin
countryNme
string

The countryNme parameter to get the data of the specific country datasets(nepal,bhutan)

nepal,bhutan
Request body example
{
  "datasetNme": "example",
  "newDatasetNme": "example"
}

Build your request in eight languages

Change source-backed examples once, validate required inputs, and copy the synchronized cURL, JavaScript, Python, Java, C#, Go, PHP, or Ruby request. Credentials remain environment references, and this page never sends a provider request.

Local request composerCode stays local · fixtures are explicit
POSTRequest inputs
0 editable · 0 protected
This operation has no editable path or query parameters.
Generated in eight languages
Environment-backed credentials
POSThttps://mgis-apiv2.mappls.com/sat/saveDataset/subset
Credential-free sandboxExecute this contract without a provider call
How fixtures work
Generated from your inputs
curl --request POST \
  --url 'https://mgis-apiv2.mappls.com/sat/saveDataset/subset' \
  --header "Accept: application/json" \
  --header "Authorization: Bearer ${MAPPLS_ACCESS_TOKEN}" \
  --header "Content-Type: multipart/form-data" \
  --data-raw '{"datasetNme":"example","newDatasetNme":"example"}'

Credential-safe by constructionSet MAPPLS_ACCESS_TOKEN only in your trusted runtime. Code generation stays local. Sandbox execution sends only bounded fixture inputs to this developer platform and never reads a credential or calls Mappls.

Send a production-shaped request

Examples use environment-backed access tokens, explicit timeouts where supported, status checks, and JSON bodies derived from the source schema. Replace sample identifiers and coordinates with values from your application.

POST /sat/saveDataset/subset
curl --request POST \
  --url 'https://mgis-apiv2.mappls.com/sat/saveDataset/subset' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
  "datasetNme": "example",
  "newDatasetNme": "example"
}'

Responses

200

OK

400

Bad Request, User made an error while creating a valid request.

401

Unauthorized.

500

Internal Server Error, the request caused an error in our systems.

200 response fields

FieldTypeDescriptionExample
code
string

Error code.

200
success
string

No field description in the source contract.

true
message
string

If everything goes ok then user receives a message indicating that the layer has been published on mGIS platform

Subset DATASET_NAME has been published for user USERNAME successfully
data
unknown

No field description in the source contract.

{}
Response example
{
  "code": "200",
  "success": true,
  "message": "Subset DATASET_NAME has been published for user USERNAME successfully",
  "data": {}
}

Operate it safely

command

This operation creates or triggers durable state. Supply an idempotency strategy and persist the returned identifier before continuing.

Keep credentials and raw tokens out of source, client bundles, prompts, and logs.Record the operation ID, status, latency, retry count, and source contract version in traces.Classify 4xx responses before retrying; back off and add jitter for retryable 5xx or transport failures.Persist resource identifiers and apply commands exactly once in effect across retries and event replay.

Contract provenance

Source file
mappls-developer-platform/data/corpus/public-api-contracts/mapmyindia-mgis-apis/docs/v2/custom/sat-apis.yml
SHA-256
a2a4cba3e839f88138a9856683d09a09e1ca7a5a9f0ab93785da7b28f3ba215e
Normalization
Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.