Update the credential
You can update an individual users credential by overriding the value and using the issuance token associated to the user. This requires no interaction from the user and will automatically update the Yoti app.
x
const payload = new Payload({
issuance_token: attributeIssuanceDetails.getToken(),
name: 'com.example.someAttribute',
value: 'some updated attribute value',
});
const request = new RequestBuilder()
.withBaseUrl('https://api.yoti.com/api/v1/attribute-registry')
.withEndpoint('/attribute/update')
.withPemString('PEM_CONTENT')
.withHeader('X-Yoti-Auth-Id', 'CLIENT_SDK_ID')
.withMethod('PUT')
.withPayload(payload)
.build();
const response = await request.execute();
Was this page helpful?