Új eszköz létrehozása; type_id megadásakor a szenzorlista a típusból automatikusan létrejön.
POST
/v1/devices
const url = 'https://api.signalguard.hu/v1/devices';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"organisation_id":"example","name":"example","eui":"example","place_id":1,"type_id":1,"active_minutes":1,"disable_notifications":true,"disable_alerts":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.signalguard.hu/v1/devices \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "organisation_id": "example", "name": "example", "eui": "example", "place_id": 1, "type_id": 1, "active_minutes": 1, "disable_notifications": true, "disable_alerts": true }'Jelleg: író. Minden művelet a hívó kulcs jogosultságaival fut. Egyenértékű műveleti alak: POST /v1/ops/create_device (= az azonos nevű MCP tool).
Authorizations
Szekció neve “Authorizations”Request Body
Szekció neve “Request Body”Media typeapplication/json
object
organisation_id
required
A szervezet azonosítója
string
name
required
string
eui
required
Az eszköz EUI-ja (kötelező, szervezeten belül egyedi)
string
place_id
required
integer
type_id
integer
active_minutes
0 = mindig online
integer
disable_notifications
boolean
disable_alerts
boolean
Examplegenerated
{ "organisation_id": "example", "name": "example", "eui": "example", "place_id": 1, "type_id": 1, "active_minutes": 1, "disable_notifications": true, "disable_alerts": true}Responses
Szekció neve “Responses”Siker — { ok: true, result }