11-05-2025 02:52 PM
Hello everyone,
I’m encountering an issue when trying to update device template variables via the vManage REST API.
The API consistently returns an HTTP 400 Bad Request, even though the workflow follows Cisco’s documented process and mirrors the web UI “Change Device Values” operation.
Our goal is to automate template variable updates that are currently performed manually in the UI.
Step 1 – Authentication
POST /j_security_check and GET /dataservice/client/token → ✅
Step 2 – Retrieve Device Info
GET /dataservice/device → ✅
Step 3 – Get Template Info
GET /dataservice/template/device/config/attached/{templateId} → ✅
Step 4 – Get Current Variables
POST /dataservice/template/device/config/input → ✅ retrieved full variable list
Step 5 – Update Variables ( Failing )
POST /dataservice/template/device/config/attachfeature → ❌ HTTP 400 Bad Request
Verified isEdited = true
Confirmed variable names match template fields
Ensured values are string type
Compared structure with working iTest automation payloads
Rechecked JSON against API documentation
Is the payload for /attachfeature missing any required fields or structure?
How can I get detailed error information for 400 responses?
Is this the right endpoint, or should a detach/attach sequence be used?
Does the web UI trigger additional backend calls that need to be replicated?
11-05-2025 02:58 PM
I love the fact this community draws questions outside of the Meraki space.
That said, in the Catalyst SD-WAN community you are more likely to find relevant experts who can help with vManage APIs.
11-05-2025 03:01 PM
Hi Oren, thanks for pointing that out, I wasn’t aware of the separate Catalyst SD-WAN space. Appreciate you guiding me to the right place!
11-05-2025 03:03 PM
Good luck.
If you don't get an answer there, ping me here with a link to the post there, and I'll reach out to the relevant people.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide