docs: @Override
      public Attachment updateAttachment(String assetId, AttachmentSummary summary) throws IOException, BadVersionException, RequestFailureException {
          // First find the attachment to update
          Asset ass = getAsset(assetId);
          List<Attachment> attachments = ass.getAttachments();
  
          if (attachments != null) {
              for (Attachment attachment : attachments) {
                  if (attachment.getName().equals(summary.getName())) {
                      this.deleteAttachment(assetId, attachment.get_id());
                      break;
                  }
              }
          }
          return this.addAttachment(assetId, summary);
      }