• Edit the newsletter data

    Parameters

    • newsletterId: string
    • opts: {
          description?: string;
          name?: string;
          picture?: string;
      }
      • Optionaldescription?: string
      • Optionalname?: string
      • Optionalpicture?: string

    Returns Promise<ResultCreateNewsletter>

    // To edit name
    const code = WPP.newsletter.edit('[newsletter-id]@newsletter', {
    name: 'New Name'
    });

    // To edit description
    const code = WPP.newsletter.edit('[newsletter-id]@newsletter', {
    description: 'New description'
    });

    // To change picture
    const code = WPP.newsletter.edit('[newsletter-id]@newsletter', {
    picture: '<base64_image>'
    });

    // To remove picture
    const code = WPP.newsletter.edit('[newsletter-id]@newsletter', {
    picture: null
    });