Update an attachment - Fluid Topics - Latest

Fluid Topics Control File

Category
Technical Notes
Audience
public
Version
Latest

Administrators can update an attachment by uploading a control file asynchronously. The control file must target the previously uploaded content by its originId.

The following lines show a control file that defines a new filename for an attachment:

<?xml version="1.0" ?>
<controlFile>
  <resources>
    <resource>
      <filePath>path_to_the_document_to_be_updated</filePath>
      <attachments>
        <attachment>
          <originId>origin_id_of_attachment_to_modify</originId>
          <filename>new_filename</filename>
          <insertAt>1</insertAt>
        </attachment>
      </attachments>
    </resource>
  </resources>
</controlFile>