Does anyone have an example on how I can update `m...
# talk-kratos
q
Does anyone have an example on how I can update
metadata_admin
using curl? I cannot get it to work.
Copy code
curl -H 'Content-Type: application/json' -X PUT <http://127.0.0.1:4434/admin/identities/485de93a-543f-4e40-ae5d-6a99d7080234> -d '[
    {
      "op": "add",
      "path": "/metadata_admin/Organizations/",
      "value": "ACME"
    }
]'
{"error":{"code":400,"status":"Bad Request","reason":"Unable to decode JSON payload: json: cannot unmarshal array into Go value of type identity.AdminUpdateIdentityBody","message":"The request was malformed or contained invalid parameters"}}