Gratheon REST API
  1. IoT sensors as client v1
Gratheon REST API
  • Telemetry service
    • IoT sensors as client v1
      • Add hive internal temperature set
        POST
      • Add hive IoT metrics
        POST
    • Entrance observer as client v1
      • Add entrance observer metrics
  • Video service
  1. IoT sensors as client v1

Add hive IoT metrics

POST
/iot/v1/metrics
Stores specified simple hive (specified by hive_id) metrics.
Uses current time.

Request

Header Params

Body Params application/json

Example
{
    "hiveId": 0,
    "fields": {
        "temperatureCelsius": 0,
        "weightKg": 0,
        "humidityPercent": 0
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/iot/v1/metrics' \
--header 'Authorization: Bearer {api_token}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "hiveId": 0,
    "fields": {
        "temperatureCelsius": 0,
        "weightKg": 0,
        "humidityPercent": 0
    }
}'

Responses

🟢201OK
text/plain
Body

Example
OK
Modified at 2025-03-31 00:38:30
Previous
Add hive internal temperature set
Next
Add entrance observer metrics
Built with