Create Token for File
Creates a Token for a given File that corresponds to the given fileId
.
Parameters
fileId
is theid
of the File the Token should be created for.- Optionally,
expiresAt
can be specified, which describes the ISODateTime the Token expires at. - Optionally,
ephemeral
can be specified, which indicates if the Token should be ephemeral and thus not be stored and cached on the local database. This is especially useful for Tokens which are created regularly, e.g. for RelationshipTemplates and don’t need to be stored. - Optionally,
forIdentity
can be specified, which names theaddress
of the only Identity that will be able to load the Token from the Backbone.
On Success
- Returns the created
Token
.
On Failure
fileId
does not resolve to a File.expiresAt
lies in the past.