Optional values in POST /api/devices/{device_activation.dev_eui}/activate


#1

Hello,

I use the LoRa App Server REST API. All json values in the body for the /api/devices/{device_activation.dev_eui}/activate request are define optional. But when using the request it shows, that all string values are necessary.

Regards


#2

I believe this is because the REST API is generated using the Protobuf API definition. Technically all fields are optional (in Protobuf), as they will fallback to the empty value of each field type (e.g. empty string, 0 for integer types, false for bools, …).