Create Token for own RelationshipTemplate
Creates a Token for a given RelationshipTemplate.
Parameters
templateId
is theid
of the RelationshipTemplate the Token should be created for.expiresAt
is the ISODateTime the Token expires at.ephemeral
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 doesn’t need to be stored.forIdentity
can be set to an enmeshed address. If set, only the Identity with thataddress
can load the Token from the Backbone.
On Success
- Returns the created
Token
.
On Failure
templateId
does not resolve to a RelationshipTemplate.expiresAt
lies in the past.