Create own RelationshipTemplate
Creates a RelationshipTemplate with the given parameters and submits it to the Backbone for other Identities to use.
A RelationshipTemplate can be used by any party to either initiate a Relationship with the current Identity or retrieve a Request from an existing Relationship by a side-channel.
Parameters
expiresAt
is the ISODateTime the RelationshipTemplate expires at. This should be set as small as possible and cannot be in the past.content
describes the structure of the RelationshipTemplate. If an enmeshed App user shall receive this RelationshipTemplate, a RelationshipTemplateContent is required as structure, otherwise an ArbitraryRelationshipTemplateContent containing any data can be used.maxNumberOfAllocations
is the number of times the RelationshipTemplate can be accessed by different Identities to initiate a Relationship. The Backbone returns an error, if one accesses a RelationshipTemplate with no allocations left. Accessing the same RelationshipTemplate with the same Identity multiple times doesn’t affect the number of allocations. The allocation counts, even if the Identity does not accept the RelationshipTemplate by discarding it.forIdentity
can be set to an enmeshed address. If set, only the Identity with thataddress
can access the RelationshipTemplate.
On Success
- Returns the created RelationshipTemplate on the Backbone.
On Failure
- The
content
is malformed. expiresAt
lies in the past.