Any help i will be appreciated
[ { "device_type_id":509, "messages_ttl": 30, "messages_rotate": 0, "name": "tmt_test", "configuration": { "ident":"352625694095***" } } ]
AkramReqqi Can you please clarify your question in more details?
AkramReqqi
[ { "device_type_id": 509, "messages_ttl": 30, "messages_rotate": 0, "name": "tmt_test", "configuration": { "ident": "352625694095***", "phone": "+37099999999" } } ]
thank you dexif
{ "result": [], "errors": [ { "code": 2, "reason": "#\/[0]\/configuration: additional properties are not allowed (got 'phone')" }, { "code": 2, "reason": "invalid device configuration" } ] }
BAD REQUEST
[ { "device_type_id":500, "messages_ttl": 3, "messages_rotate": 0, "name": "tmttest3", "configuration": { "ident":"352625694095190", "phone": "+212682406316" } } ]
You can't add a phone for device_type_id: 500 Xirgo FMS500 Tacho (bce)
device_type_id: 500
Yo can get configuration schema for device_type_id here: https://flespi.io/docs/#/gw/channels/get_channel_protocols_protocol_selector_device_types_devtypes_selector Request example:
curl -X GET --header 'Authorization: FlespiToken YOURTOKENHERE' 'https://flespi.io/gw/channel-protocols/all/device-types/500?fields=configuration'
thank you dexif 😃