Closed zbuchheit closed 1 month ago
Do you test it directly in API? It works?
API is fine, it seems because the PUT via the provider is getting sent with camera
and sensor
as {}
despite it not being contained in the code and also it doesn't exist on the network I am working with.
Looking in the logs this is what the PUT request body is
BODY :
{
"products": {
"appliance": {
"nextUpgrade": {
"toVersion": {}
},
"participateInNextBetaRelease": false
},
"camera": {},
"cellularGateway": {
"nextUpgrade": {
"toVersion": {}
},
"participateInNextBetaRelease": false
},
"sensor": {},
"switch": {
"nextUpgrade": {
"toVersion": {}
},
"participateInNextBetaRelease": false
},
"wireless": {
"nextUpgrade": {
"time": "2024-08-10T23:00:00Z",
"toVersion": {
"id": "3183"
}
},
"participateInNextBetaRelease": false
}
},
"timezone": "America/Los_Angeles",
"upgradeWindow": {
"dayOfWeek": "thu",
"hourOfDay": "23:00"
}
}
------------------------------------------------------------------------------
When I use a GET to query the values there is no camera or sensor so the API call I would want/expect the provider to make would be the same as above just without "sensor": {},
and "camera": {},
If we do not receive a response it will be closed in the next 24 hours.
Prerequisites
Describe the bug
When attempting to use meraki_networks_firmware_upgrades with
products
set I get the following error back from the APIExpected behavior
I would expect the resource to create successfully with my desired nextUpgrade value.
Example Code
Environment (please complete the following information):
Additional context Add any other context about the problem here.