Tovább a tartalomhoz

Szenzorsablon módosítása.

PATCH
/v1/sensor-templates/{template_id}
curl --request PATCH \
--url https://api.signalguard.hu/v1/sensor-templates/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "template_id": 1, "label": "example", "description": "example", "unit": "example", "default_sui": "example", "icon_id": 1, "color_id": 1, "sensor_order": 1, "has_history": true, "history_size": 1 }'

Jelleg: író. Minden művelet a hívó kulcs jogosultságaival fut. Egyenértékű műveleti alak: POST /v1/ops/update_sensor_template (= az azonos nevű MCP tool).

template_id
required
string
Media typeapplication/json
object
template_id
required
integer
label

Címke (megjelenített név)

string
>= 1 characters
description

Név / leírás

string
unit

Mértékegység

string
default_sui

Alapértelmezett SUI

string
icon_id
integer
color_id
integer
sensor_order
integer
has_history
boolean
history_size
integer
>= 1 <= 1000
Examplegenerated
{
"template_id": 1,
"label": "example",
"description": "example",
"unit": "example",
"default_sui": "example",
"icon_id": 1,
"color_id": 1,
"sensor_order": 1,
"has_history": true,
"history_size": 1
}

Siker — { ok: true, result }