Is there a way to patch a user to “verified” via O...
# ory-network
a
Is there a way to patch a user to “verified” via Ory Console/CLI/Admin API?
m
There is the PATCH endpoint and it seems like the field
verifiable_addresses
contains the verified emails So something like:
Copy code
{
  "path": "/verifiable_addresses/0",
  "value": {
    "verified": true,
    "verified_at": "...",
    ...
  }
}
might work. (Haven’t verified though) https://www.ory.sh/docs/reference/api#tag/identity/operation/patchIdentity
l
Copy code
await OryIdentityApiClient.patchIdentity({
    id: identityId,
    jsonPatch: [
        {
            op: 'replace',
            path: `/verifiable_addresses/0/verified`,
            value: true
        },
        {
            op: 'replace',
            path: `/verifiable_addresses/0/status`,
            value: 'completed'
        }
    ]
});
This works
👏 1
🙌 2