Create Token QR code for File
Creates a QR code for a Token of a File that corresponds to the given fileId.
Parameters
fileIdis theidof the File the Token and its QR code should be created for.- Optionally,
expiresAtcan be specified, which describes the ISODateTime the Token expires at. - Optionally,
forIdentitycan be specified, which names theaddressof the only Identity that will be able to load the Token from the Backbone. - Optionally,
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.
On Success
- Returns the created QR code, whose content is Base64-encoded.
On Failure
fileIddoes not resolve to a File.expiresAtlies in the past.- 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.