I tested some of SOAP APIs for my assignment that will trash many old messages in batch.

I wrote codes in ruby and initiated MsgActionRequest looking like this:

<n2:MsgActionRequest xmlns:n2="urn:zimbraMail">
<action op="trash"
However, the API returns an error like this:

<soap:Body><soap:Fault><soap:faultcode>soap:Client </soap:faultcode><soap:faultstring>invalid request: unknown operation: trash</soap:faultstring><soap:detail><Error xmlns="urn:zimbra"><Code>service.INVALID_REQUEST</Code><Trace>com.zimbra.cs.service.ServiceException : invalid request: unknown operation: trash
My code works fine with "spam" and "delete" operators. Do I miss something in my SOAP request?