Forum Discussion
API_User
3 years agoEquinix Employee
Can't edit a circuit's bandwidth
Hi,
I have a circuit and I'm trying to change the bandwidth using PATCH /fabric/v4/connections/{id}
Here's the payload:
{
"op": "replace",
"path": "/bandwidth",
"value": 900
}
But I keep getting this error code and there seems to be no way around it.
[
{
"errorCode": "EQ-3142506",
"errorMessage": "Invalid request",
"details": "Media type is not supported",
"correlationId": "X-X-X-api"
}
]
Would appreciate the help,
Thanks
Solved.
I needed to wrap the JSON body in a list like so:[
{
"op": "replace",
"path": "/bandwidth",
"value": 900
}
]
3 Replies
- API_UserEquinix Employee
Solved.
I needed to wrap the JSON body in a list like so:[
{
"op": "replace",
"path": "/bandwidth",
"value": 900
}
] - API_UserEquinix Employee
Thank you friend, I've been stuck on that for ages.
Unfortunately, running into another issue now[
{
"errorCode": "EQ-3142558",
"errorMessage": "Json syntax error, please check request body",
"details": "Please refer the contracts for correct fields",
"correlationId": "{}-api"
}
] - API_UserEquinix Employee
Please update the content type in the patch request header:
-H 'Content-Type: application/json-patch+json'
I hope this helps!
Related Content
- 3 years ago
Recent Discussions
Featured Places
Discussions
Engage with industry experts, share insights, ask questions, and grow your network.Ideas
We're listening! Submit your ideas to shape the future of Equinix!Groups
Ready to collaborate? Join a Group or upcoming beta program.What's New
Stay ahead with the latest from Equinix. Discover new product announcements, insightful tutorials, and practical use cases.Events
Your Guide to Upcoming Events - Online, Hybrid, and In-Person!