Create Token QR code for own RelationshipTemplate
Creates a QR code for a Token of a given RelationshipTemplate.
Parameters
templateIdis theidof the RelationshipTemplate the Token and its QR code should be created for.expiresAtis the ISODateTime the Token expires at.forIdentitycan be set to an enmeshed address. If set, only the Identity with thataddresscan load the Token from the Backbone. If the RelationshipTemplate is already personalized via itsforIdentityproperty, the Token created from it must have the same personalization.passwordProtectioncan be specified as an object for PasswordProtection of a Token. If set, only the Identities that know the password specified within thepasswordProtection.passwordproperty of the Token can load it from the Backbone. In addition, the optional propertypasswordProtection.passwordIsPincan be used to configure the UI of the App in case the password is a pin. If the RelationshipTemplate is already password protected via itspasswordProtectionproperty, the Token created from it must have the same password protection.
On Success
- Returns the created QR code, whose content is Base64-encoded.
On Failure
templateIddoes not resolve to a RelationshipTemplate.- The RelationshipTemplate is owned by another Identity, which means that the value of its
isOwnproperty isfalse. expiresAtlies in the past.- The RelationshipTemplate is personalized via its
forIdentityproperty and the Token does not have the same personalization via itsforIdentityproperty. - The RelationshipTemplate is password protected via its
passwordProtectionproperty and the Token does not have the same password protection via itspasswordProtectionproperty. - In case of password protection of the Token, a
passwordProtection.passwordthat does not consist of 4 to 16 digits was specified, but the value ofpasswordProtection.passwordIsPinwas nevertheless set totrue.