I'm looking to change the hubs that we have set for a grouping of config templates. Is there an API call that would be able to do this for the config templates? I'm able to do it for a single network - but if I enter the template ID into that same script, I get "The remote server returned an error: (400) Bad Request."
Below I've pasted a script that should just list the hubs for a network - this will work for a single network, but not a config template:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$networkId = 'L_xxxxxxxxxxxx'
$baseURL = 'https://api.meraki.com/api/v1'
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("X-Cisco-Meraki-API-Key", "dxxxxxxxxxxxxxxx")
$headers.Add("Content-Type", "application/json")
$response = Invoke-RestMethod -Headers $headers -Uri $baseURL/networks/$networkId/appliance/vpn/siteToSiteVpn
Does anyone happen to have any suggestions on how to modify the hubs for a config template?