Overview | Service | Command |
<SaveDocumentRequest xmlns:ns0="urn:zimbraMail"> <doc> <upload id="18baa043-394f-42ae-be8a-110b279cb696:cc2f2fdf-7957-4412-aa83-6433662ce5d0"/> </doc> </SaveDocumentRequest> <SaveDocumentResponse xmlns:ns0="urn:zimbraMail"> <doc ver="1" id="574" name="PICT0370.JPG"/> </SaveDocumentResponse>Updating an existing document
<SaveDocumentRequest xmlns:ns0="urn:zimbraMail"> <doc ver="1" id="574" desc="rev 2.0"> <upload id="18baa043-394f-42ae-be8a-110b279cb696:fcb572ce-2a81-4ad3-b55b-cb998c47b416"/> </doc> </SaveDocumentRequest> <SaveDocumentResponse xmlns:ns0="urn:zimbraMail"> <doc ver="2" id="574" name="PICT0370.JPG"/> </SaveDocumentResponse>
Authorization token required | true |
Admin Authorization token required | false |
<SaveDocumentRequest> ## SaveDocumentRequest
<doc [name="..."] [ct="..."] [desc="..."] [l="..."] [id="..."] [ver="(Integer)"] [content="..."]
[descEnabled="(0|1)"] [f="..."]> ## DocumentSpec
<upload [id="..."] /> ## Id
<m id="..." part="..." /> ## MessagePartSpec
<doc id="..." [ver="(Integer)"] /> ## IdVersion
</doc>
</SaveDocumentRequest>
elements and attributes you can define within a
<SaveDocumentRequest>
element:
XPath | Required / Optional | Description |
/doc | Required (only 1) | |
/doc@name | Optional (0 or 1) | Type: String |
/doc@ct | Optional (0 or 1) | Type: String |
/doc@desc | Optional (0 or 1) | Type: String |
/doc@l | Optional (0 or 1) | Type: String |
/doc@id | Optional (0 or 1) | Type: String |
/doc@ver | Optional (0 or 1) | Type: Integer |
/doc@content | Optional (0 or 1) | Type: String |
/doc@descEnabled | Optional (0 or 1) | Type: 0|1 |
/doc@f | Optional (0 or 1) | Type: String |
/doc/upload | Optional (0 or 1) | |
/doc/upload@id | Optional (0 or 1) | Type: String |
/doc/m | Optional (0 or 1) | |
/doc/m@id | Required (only 1) | Type: String |
/doc/m@part | Required (only 1) | Type: String |
/doc/doc | Optional (0 or 1) | |
/doc/doc@id | Required (only 1) | Type: String |
/doc/doc@ver | Optional (0 or 1) | Type: Integer |
<SaveDocumentResponse> ## SaveDocumentResponse
<doc id="..." ver="(int)" name="..." /> ## IdVersionName
</SaveDocumentResponse>
elements and attributes you can define within a
<SaveDocumentResponse>
element:
XPath | Required / Optional | Description |
/doc | Optional (0 or 1) | |
/doc@id | Required (only 1) | Type: String |
/doc@ver | Required (only 1) | Type: int |
/doc@name | Required (only 1) | Type: String |