ancient-judge-84558
08/18/2023, 10:44 AMmysterious-processor-51766
08/18/2023, 11:53 AMverifiable_addresses
contains the verified emails
So something like:
{
"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/patchIdentitylimited-photographer-61008
08/18/2023, 11:56 AMawait 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