This operation was normalized from a MapmyIndia-generation specification. Validate its current Mappls host, path, package entitlement, authentication generation, and commercial availability before production use.
Compare before changing adapters
This is the v2-0-0 declaration and the highest version-labelled source evidence. “Preferred” does not prove provider support or semantic compatibility.
Open field-level comparison and migration checklistCall the operation
https://intouch.mapmyindia.com/iot/api/geofence/https://intouch.mapmyindia.com/iot/apiParameters
Body schema
nameName of the geofence.
marketbufferBuffer is nothing but radius in meters. If passed then by default the system will create a circle geofence. If buffer is not passed then by default the system will create a 'point' type geofence with radius as 50 meters
1000geometryThis is a geoJSON string. You can pass here either 'Point' or 'Polygon'. Point is used for circular geofence, and Polygon is used for a multiple point polygon geofence
28.612964,77.229463{
"name": "market",
"buffer": 1000,
"geometry": {
"type": "Point",
"coordinates": [
77.2334,
28.7676
]
}
}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.
https://intouch.mapmyindia.com/iot/api/geofence/curl --request POST \
--url 'https://intouch.mapmyindia.com/iot/api/geofence/' \
--header "Accept: application/json" \
--header "Authorization: Bearer ${MAPPLS_INTOUCH_TOKEN}" \
--header "Content-Type: application/form-data" \
--data-raw '{"name":"market","buffer":1000,"geometry":{"type":"Point","coordinates":[77.2334,28.7676]}}'Credential-safe by constructionSet MAPPLS_INTOUCH_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.
curl --request POST \
--url 'https://intouch.mapmyindia.com/iot/api/geofence/' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"name": "market",
"buffer": 1000,
"geometry": {
"type": "Point",
"coordinates": [
77.2334,
28.7676
]
}
}'Responses
Created
Device Not Found
Bad Request - Invalid ID supplied or invalid data type.
Unauthorized Request. Access to API is forbidden.
Not Found - URL Not Found
Operate it safely
This operation creates or triggers durable state. Supply an idempotency strategy and persist the returned identifier before continuing.
Contract provenance
- Source file
contenthub/dochub/mapmyindia-intouch-rest-apis/custom/geofence.yaml- SHA-256
03d663d784a8ea9af1a3915cad4395ab716b167774dbf54a73c516bd10bc887a- Normalization
- Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.
- Source record
- Open repository audit