-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Is this possible?
I have tried to skip a depth value, e.g. soil_moisture_60:
const postData = JSON.stringify([{
dataset_id: "test_dataset",
date: "2025-09-30T16:56:05.054Z",
soil_moisture_10: 7.3,
soil_moisture_20: 2.4,
soil_moisture_30: 2.2,
soil_moisture_40: 1.3,
soil_moisture_50: 1.1,
rain: 0,
temperature: 32.1,
humidity: 30.02
}]);
but an error is returned:
Response: {
detail: [
{
type: 'missing',
loc: [Array],
msg: 'Field required',
input: [Object]
}
]
}
I have also tried to add empty value(s), e.g. for soil_moisture_60:
const postData = JSON.stringify([{
dataset_id: "test_dataset",
date: "2025-09-30T16:56:05.054Z",
soil_moisture_10: 7.3,
soil_moisture_20: 2.4,
soil_moisture_30: 2.2,
soil_moisture_40: 1.3,
soil_moisture_50: 1.1,
soil_moisture_60: null,
rain: 0,
temperature: 32.1,
humidity: 30.02
}]);
but again an error is returned:
Response: {
detail: [
{
type: 'float_type',
loc: [Array],
msg: 'Input should be a valid number',
input: null
}
]
}
Metadata
Metadata
Assignees
Labels
No labels