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 v1-0-0 declaration and a retained alternative source generation. “Preferred” does not prove provider support or semantic compatibility.
Open field-level comparison and migration checklistCall the operation
https://intouch.mapmyindia.com/iot/api/alarm/1https://intouch.mapmyindia.com/iot/apiParameters
idrequiredMandatory field. This is the ID of the alarm config which needs to be updated.
1Body schema
deviceIdID of the device for which the alarm config has to be updated. If there are multiple devices then you can pass them separated by comma.
[6678,9876]typeFor Geofence(alarmType = 26), value of type are as follows: 2 - entry, 3 - Exit, 1 - Entry & Exit, 4 - long stay in geofence For ignition(alarmType = 21), types values are as follows: 1 - Both ON & OFF, 2 - Ignition On, 3 - Ignition Off, 5 - Day's First Ignition ON For mileage(alarmType = 133), value of type are as follows: 0 - Daily, 1 - Monthly For DIstance Covered(alarmType = 151), value of type are as follows: 1 - At Least, 2 - At Most
1durationOnly required in case of overspeed, stoppage, idle, towing, GPRS connectivity, vehicle battery, GPS connectivity, distance covered, internal battery alarm
11limitOnly required in case of overspeed, vehicle battery, mileage, distance covered, internal battery alarm
55geofenceIdOnly required when alarmType is 26 (Geofence). You can pass a single geofence ID or multiple geofence IDs separated by comma
[23434,45454]severityThis basically defines the severity of the alarm. You can pass 0 for normal severity & 1 for high severity.
0{
"deviceId": [
6678,
9876
],
"type": 1,
"duration": 11,
"limit": 55,
"geofenceId": [
23434,
45454
],
"severity": 0
}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/alarm/1curl --request POST \
--url 'https://intouch.mapmyindia.com/iot/api/alarm/1' \
--header "Accept: application/json" \
--header "Authorization: Bearer ${MAPPLS_INTOUCH_TOKEN}" \
--header "Content-Type: application/form-data" \
--data-raw '{"deviceId":[6678,9876],"type":1,"duration":11,"limit":55,"geofenceId":[23434,45454],"severity":0}'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/alarm/1' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"deviceId": [
6678,
9876
],
"type": 1,
"duration": 11,
"limit": 55,
"geofenceId": [
23434,
45454
],
"severity": 0
}'Responses
OK - successful operation
Bad Request - Invalid ID supplied or invalid data type.
Unauthorized Request. Access to API is forbidden.
ID 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/Intouch-Telematics-Swagger-25052020.json- SHA-256
54637441ab0c8ea447e121ba33afbc464e714a3dbceec49d4b70dabe9778657f- Normalization
- Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.
- Source record
- Open repository audit