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.
Call the operation
https://intouch.mapmyindia.com/iot/api/groups?name=examplehttps://intouch.mapmyindia.com/iot/apiParameters
namerequiredThis the name of the group which you want to create.
exampledeviceIdThese are the IDs of the devices which you want to have in this group. You can pass a single device id or a set of multiple ids separated by comma.
["1009,6765,8798"]colorCodeThis the color code(in hex format) which you want to associated with the group.
#24545Build 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/groups?name=example&deviceId=%5B%221009%2C6765%2C8798%22%5D&colorCode=%2324545curl --request POST \
--url 'https://intouch.mapmyindia.com/iot/api/groups?name=example&deviceId=%5B%221009%2C6765%2C8798%22%5D&colorCode=%2324545' \
--header "Accept: application/json" \
--header "Authorization: Bearer ${MAPPLS_INTOUCH_TOKEN}"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/groups?name=example' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Responses
Created
Device Not Found or invalid device id
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/group.json- SHA-256
669b74b917e37baa2cafdb2411c242905e2b6d41de32726767a387c1838ea87d- Normalization
- Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.
- Source record
- Open repository audit