Queue new sensor settings (PHANTOM® Gateway 1 only)
Deprecated
POST
/UpdateConfig
const url = 'http://localhost:80/PhantomService.svc/UpdateConfig';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"phantomCode":"example","intervalSendData":1,"range":1,"intervalRMS":1,"alarm1":1,"alarm2":1,"alarm3":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:80/PhantomService.svc/UpdateConfig \ --header 'Content-Type: application/json' \ --data '{ "phantomCode": "example", "intervalSendData": 1, "range": 1, "intervalRMS": 1, "alarm1": 1, "alarm2": 1, "alarm3": 1 }'Only works with PHANTOM® Gateway 1. This endpoint was written for the first-generation gateway and does not work with Gateway 2.
It is absent from the SDK documentation for that reason. It may still be live on installations serving a Gateway 1, which is why it is documented here rather than hidden — but do not build a new integration on it.
Use saveSettings instead,
which takes the sensor type as well and works with both generations.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
phantomCode
required
⚠️ Cadena aquí; entero en saveSettings.
string
intervalSendData
required
integer
range
required
integer
intervalRMS
required
integer
alarm1
required
Alarm threshold in mm/s. Minimum 0.5 (status 505).
number format: float
alarm2
required
Alarm threshold in mm/s. Minimum 0.5 (status 505).
number format: float
alarm3
required
Alarm threshold in mm/s. Minimum 0.5 (status 505).
number format: float
Examplegenerated
{ "phantomCode": "example", "intervalSendData": 1, "range": 1, "intervalRMS": 1, "alarm1": 1, "alarm2": 1, "alarm3": 1}Responses
Section titled “Responses”The outcome of the operation.
Media typeapplication/json
The Key half of every response envelope.
object
StatusNumber
required
0 means OK. See the Status codes page.
integer
Description
required
string
Configs
Array<object>
object
Example
{ "Description": "OK"}