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
Not sure whether it's a bug, or not supported (the HTTP API docs don't mention metadata patching not being supported, though), or whether I'm doing something wrong. I'm trying to update a single metadata_admin field via the identity patch endpoint, but depending on the JSON patch operation I use, I'm either getting an error or the metadata is set to NULL.
Reproducing the bug
create an identity with metadata_admin set to {"state_detailed": "active"}
PATCH /admin/identities/{id} with this request body:
Preflight checklist
Describe the bug
Not sure whether it's a bug, or not supported (the HTTP API docs don't mention metadata patching not being supported, though), or whether I'm doing something wrong. I'm trying to update a single
metadata_admin
field via the identity patch endpoint, but depending on the JSON patch operation I use, I'm either getting an error or the metadata is set toNULL
.Reproducing the bug
metadata_admin
set to{"state_detailed": "active"}
PATCH /admin/identities/{id}
with this request body:This results in the error
add operation does not apply: doc is missing path: \"/metadata_admin/state_detailed\": missing value
.On the other, when I run the request with this request body:
I'm getting a success respone, but now
metadata_admin
isNULL
in the database (same with replace).Relevant log output
No response
Relevant configuration
No response
Version
0.11.0
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
Docker Compose
Additional Context
No response
The text was updated successfully, but these errors were encountered: