Skip to content

Ability to update entities

It's possible to update uploaded entities with the action MODIFY:

update_study.xml:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="receipt.xsl"?>
<STUDY_SET>
  <STUDY alias="mw_study">
    <DESCRIPTOR>
      <STUDY_TITLE>MW Study</STUDY_TITLE>
      <STUDY_TYPE existing_study_type="Whole Genome Sequencing"/>
      <STUDY_ABSTRACT>Some updated abstract text</STUDY_ABSTRACT>
    </DESCRIPTOR>
    <STUDY_ATTRIBUTES>
    </STUDY_ATTRIBUTES>
  </STUDY>
</STUDY_SET>

modify.xml:

<?xml version="1.0" encoding="UTF-8"?>
<SUBMISSION_SET xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SRA.submission.xsd">
  <SUBMISSION alias="" broker_name="EGA">
    <ACTIONS>
      <ACTION>
        <MODIFY />
      </ACTION>
      <ACTION>
        <PROTECT />
      </ACTION>
    </ACTIONS>
  </SUBMISSION>
</SUBMISSION_SET>

Curl:

curl -X POST -u <credentials> \
  https://wwwdev.ebi.ac.uk/ena/submit/drop-box/submit/ \
  -F SUBMISSION=@modify.xml \
  -F STUDY=@update_study.xml