• Adds a text resource.

    Parameters

    • content: string

      Text to add as a resource

    • itemId: string

      Id of the item to add the resource to

    • folder: string

      A prefix string added to the filename in the storage; use null or undefined for no folder

    • filename: string

      File name used to rename an existing file resource uploaded, or to be used together with text as file name for it. File name must have the file resource extension.

    • authentication: UserSession

      Credentials for the request

    Returns Promise<any>