create_collection
Adds compatible measurements to a previously detected device. First create /api/ambientes and submit its environment report. Reference that ambiente_id here; its saved name and group are authoritative. Same device+measurement returns the existing stream instead of duplicating it. A profile adds only compatible measurements. Up to 200 collections per owner. The signed collection id writes only its own measurement stream.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nome | Yes | Device name, up to 60 characters. | |
| grupo | No | Optional group, up to 40 characters. | |
| medida | No | Which measurement; defaults to `loadavg`. | |
| perfil | No | essentials or completo. Expands to compatible measurements and takes precedence over medida. | |
| ambiente_id | Yes | UUID of a detected environment owned by this account/guest. |