update_environment
Renames a device, and its measurements along with it. One machine has one name. The measurements carry a copy of it, so renaming here renames them too — leaving the old name on them would show the same machine twice in a list that groups by device. Its collector channels take the new name and group too in GET /api/coletas (inputs[]), and the group decides which dashboard tab the device is under. Send only what changes; what you omit stays. The detected environment is never rewritten: it is evidence of what that machine reported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Device environment UUID v4; the report URL is a one-hour write capability. | |
| nome | No | New device name, 1–60 characters. | |
| grupo | No | New group, up to 40 characters; empty clears it. |