Uploads and stores a Microsoft Excel file to the CMS repository.
POST /spreadsheets
Request type: multipart/form-data
The request body is a multipart body made of the following parts:
Response type: application/xml or application/json
The response is a message stating the success or failure of the request.
XML request body for a Microsoft Excel 2007 file:
--10f3211b-66e8-4b14-93ec-b11ec5c19a43-41d3c84c-d157-4377-aba9-41353b9a4dfe Content-Disposition: form-data; name="attachmentInfos" Content-Type: application/xml // mandatory carriage return <spreadsheet> <name>myfile.xlsx</name> <folderId>6206</folderId> </spreadsheet> // mandatory carriage return --10f3211b-66e8-4b14-93ec-b11ec5c19a43-41d3c84c-d157-4377-aba9-41353b9a4dfe Content-Disposition: form-data; name="attachmentContent" Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet // mandatory empty line ... Excel 2007 document as a binary stream... // mandatory carriage return --10f3211b-66e8-4b14-93ec-b11ec5c19a43-41d3c84c-d157-4377-aba9-41353b9a4dfe--
XML response:
<success> <message>The resource of type "Spreadsheet" with identifier "7466" has been successfully created.</message> <id>7466</id> </success>
JSON request body for a Microsoft Excel 2003 file:
--10f3211b-66e8-4b14-93ec-b11ec5c19a43-41d3c84c-d157-4377-aba9-41353b9a4dfe Content-Disposition: form-data; name="attachmentInfos" Content-Type: application/json // mandatory carriage return {"spreadsheet":{"name":"myfile.xls","folderId":6206}} // mandatory carriage return --10f3211b-66e8-4b14-93ec-b11ec5c19a43-41d3c84c-d157-4377-aba9-41353b9a4dfe Content-Disposition: form-data; name="attachmentContent" Content-Type: application/vnd.ms-excel // mandatory empty line ... Excel 2007 document as a binary stream... // mandatory carriage return --10f3211b-66e8-4b14-93ec-b11ec5c19a43-41d3c84c-d157-4377-aba9-41353b9a4dfe--
JSON response:
{"success": {"message":"The resource of type \"Spreadsheet\" with identifier \"7492\" has been successfully created.", "id":7492 } }