Service: zimbraAccount

Command: CreateDistributionList
Namespace: urn:zimbraAccount
Description: Create a Distribution List

Note:
authed account must have the privilege to create dist lists in the domain

Properties:
Authorization token required true
Admin Authorization token required false

CreateDistributionListRequest

    <CreateDistributionListRequest name="..." [dynamic="(0|1)"]> ## CreateDistributionListRequest
        (<a n="{key}">{value}</a> ## KeyValuePair)*
    </CreateDistributionListRequest>

elements and attributes you can define within a <CreateDistributionListRequest> element:

XPath Required / Optional Description
@name Required (only 1) Type: String
Name for the new Distribution List
@dynamic Optional (0 or 1) Type: 0|1
Flag type of distribution list to create
set to 1 (true) [default] create a dynamic distribution list
set to 0 (false) create a static distribution list
/a Optional (0 or more) Type: {value}
Attributes specified as key value pairs
Description for element text content:Value
/a@n Required (only 1) Type: String
Key

CreateDistributionListResponse

    <CreateDistributionListResponse> ## CreateDistributionListResponse
        <dl ref="{dl-ldap-dn}" [d="{dl-display-name}"] [dynamic="{dl-is-dynamic} (0|1)"] [via="{via-dl-name}"]
               [isOwner="{isOwner} (0|1)"] [isMember="{isMember} (0|1)"] name="{object-name}" id="{object-id}"> ## DLInfo
            (<a n="{key}">{value}</a> ## KeyValuePair)*
        </dl>
    </CreateDistributionListResponse>

elements and attributes you can define within a <CreateDistributionListResponse> element:

XPath Required / Optional Description
/dl Required (only 1) Information about created distribution list
/dl@ref Required (only 1) Type: String
ldap dn of the DL.
/dl@d Optional (0 or 1) Type: String
Display name of group
/dl@dynamic Optional (0 or 1) Type: 0|1
Flags whether the group is dynamic or not
/dl@via Optional (0 or 1) Type: String
{via-dl-name} = is present if the account is a member of the returned list because they are either a direct or indirect member of another list that is a member of the returned list. For example, if a user is a member of engineering@domain.com, and engineering@domain.com is a member of all@domain.com, then the following would be returned:
     <dl name="all@domain.com" ... via="engineering@domain.com"/>
 
/dl@isOwner Optional (0 or 1) Type: 0|1
Flags whether user is the owner of the group.
Only returned if ownerOf on the request is 1 (true)
/dl@isMember Optional (0 or 1) Type: 0|1
Flags whether user is a member of the group.
Only returned if memberOf on the request is 1 (true)
/dl@name Required (only 1) Type: String
Name
/dl@id Required (only 1) Type: String
ID
/dl/a Optional (0 or more) Type: {value}
Attributes
Description for element text content:Value
/dl/a@n Required (only 1) Type: String
Key