pem.exchange.addPublicFolder

This method is supported by Operations starting from version 2.8 hotfix02

This method adds a Public Folder.

The method has the following input parameters:

Name

Type

Short Description

subscription_id

int

ID of Subscription.

public_folder_name

string

Public Folder name.

items_type

int

This parameter defines the type of items, which are stored in the Public Folder. There are the following options:

  • 0 – Mail Items.
  • 1 – Contacts Items.
  • 2 – Appointment Items.
  • 3 – Note Items.
  • 4 – Task Items.
  • 5 – Journal Items.

size_limit_mb

int

This parameter defines the maximum allowed Public Folder size in megabytes.

default_role

int

This parameter defines the default role for Public Folder. There are the following options:

  • 0 – None.
  • 1 – Reviewer.
  • 2 – Contributor.
  • 3 – Non-Editing Author.
  • 4 – Author.
  • 5 – Publishing Author.
  • 6 – Editor.
  • 7 – Publishing Editor.
  • 8 – Owner

[parent_folder_id]

int

ID of parent Public Folder. This parameter is optional. There are the following options:

  • Parameter is specified. New Public Folder is created under the parent Public Folder.
  • Parameter is not specified. New Top-level Public Folder is created.

The method has the following output parameters:

Name

Type

Short Description

public_folder_id

int

ID of Public Folder created.

Note: This method can also be called under Reseller permissions.