Receiving 404 when i try to update SSID PSK

Solved
StephenMeyer
Here to help

Receiving 404 when i try to update SSID PSK

I can successfully call and get the data from getting a specific SSID network details, when i try to update the password {psk} i get a 404. Below is a snippet of the powershell code i am trying,

 

$deviceAPIUri = "$baseUrl$dashboardAPIVersion/networks/$MYNETWORK_ID/wireless/ssids/$GUEST_ID"
$response = Invoke-WebRequest -Uri $deviceAPIUri -Method GET -Headers $headers
 
 
#
# Check if Guest

if ($response.StatusCode -eq 200 ){

 
$ssidConfig = $response | ConvertFrom-Json

$ssidConfig.psk = "HelloThere"

#
#create JSON body with data to update.
#
 
$body = (ConvertTo-Json $ssidConfig)

Write-Host $body

$response1 = Invoke-RestMethod -Uri $deviceAPIUri -Method POST -Headers $headers -Body $body

write-host $response1
 
 
Please help. I have been able to use powershell and interact with the dashboard API without fail... until now.
1 Accepted Solution
BlakeRichardson
Kind of a big deal
Kind of a big deal

@StephenMeyer This should be in the API board. 

View solution in original post

2 Replies 2
BlakeRichardson
Kind of a big deal
Kind of a big deal

@StephenMeyer This should be in the API board. 

StephenMeyer
Here to help

Thanks i have posted in API forum.

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.
Labels