Service: zimbraMail

Command: SetCustomMetadata
Namespace: urn:zimbraMail
Description: Set Custom Metadata
Setting a custom metadata section but providing no key/value pairs will remove the sction from the item
Properties:
Authorization token required true
Admin Authorization token required false

SetCustomMetadataRequest

    <SetCustomMetadataRequest id="{item-id}"> ## SetCustomMetadataRequest
        <meta [section="{section}"]> ## MailCustomMetadata
            (<a n="{key}">{value}</a> ## KeyValuePair)*
         </meta>
    </SetCustomMetadataRequest>

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

XPath Required / Optional Description
@id Required (only 1) Type: String
Item ID
/meta Optional (0 or 1) New metadata information
/meta@section Optional (0 or 1) Type: String
Section.
Normally present. If absent this indicates that CustomMetadata info is present but there are no sections to report on.
/meta/a Optional (0 or more) Type: {value}
Key value pairs
Description for element text content:Value
/meta/a@n Required (only 1) Type: String
Key

SetCustomMetadataResponse

    <SetCustomMetadataResponse id="{item-id}" /> ## SetCustomMetadataResponse

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

XPath Required / Optional Description
@id Required (only 1) Type: String
Item ID