Function create

  • Creates a new LicenseRecord object.

    Note: This method requires an existing TitleRecord. Use create first.

    The expiry parameter sets the expiration date of the LicenseRecord. If the license never expires, leave this parameter as undefined.

    Parameters

    • titleId: string

      The identifier for the corresponding title record

    • uses: LicenseUse[]

      A list defining how and where an asset may be used, in the format of LicenseUse objects. Learn more about specifying uses at https://docs.mytiki.com/docs/specifying-terms-and-usage.

    • terms: string

      A URL to the legal terms of the contract. This is a long text document that explains the terms of the license.

    • Optional description: string

      A short, human-readable description of the TitleRecord as a future reminder. This parameter is used only if a TitleRecord does not already exist for the provided ptr.

    • Optional expiry: Date

      The expiration date of the LicenseRecord. If the license never expires, leave this parameter as undefined.

    Returns Promise<LicenseRecord>