API_User
2 years agoLevel 9
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
}
]