You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After much time spent digging into why account updates weren't working, it seems the below line is somewhat incorrect. Although the output looks almost identical, if there is only one operation in the $s_AccountBody array, the $restBody will be missing beginning and end [ ].
After much time spent digging into why account updates weren't working, it seems the below line is somewhat incorrect. Although the output looks almost identical, if there is only one operation in the $s_AccountBody array, the $restBody will be missing beginning and end [ ].
$restBody = $s_AccountBody | ConvertTo-Json -depth 5
{
"op": "replace",
"path": "/name",
"value": "OlderName"
}
Adjusting to this seems to work correctly even if there's only one object in the array.
$restBody = ConvertTo-Json @($s_AccountBody) -depth 5
[
{
"op": "replace",
"path": "/name",
"value": "OlderName"
}
]
The text was updated successfully, but these errors were encountered: