I am trying to update the access profile with below body and getting 400 bad request. Thanks in advance[{“op”: “replace”,“path”: “/description”,“value”: “string32132” }]
Have you set Content type as application/json-patch+json
in the header?
Hi @iamnithesh , Yes , I have setup correctly as mentioned in the API documentation. but, still it is not working. Any thoughts on this.
When I tried to copy paste your body, I observed that the quotes are different.
Try using this body:
[
{
"op": "replace",
"path": "/description",
"value": "String123"
}
]
curl --location --request PATCH '<tenant_url>/beta/access-profiles/:id' \
--header 'Content-Type: application/json-patch+json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--data '[{"op":"replace","path":"/description","value":"Test"}]'
I just tried above and it worked for me.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.