Image Session Archive Service API
Archive An Image Session That Is Currently In The Prearchive
Introduced with XNAT 1.5, the import service is a customizable implementation for transfering data from the prearchive to the archive space. XNAT comes with a preconfigured implementation for moving standard imaging session data from the prearchive to the archive space.
POST - /data/services/archive
Parameters
src | Required body parameter: Only used when attempting to import a previously uploaded file
Note: If multiple src directories are referenced, then the archive operation will happen asynchronously from the request |
---|---|
overwrite | Optional body parameter.
|
quarantine | Optional body parameter
|
triggerPipelines | Optional body parameter
|
dest | Optional body parameter. If it is empty, it will review the uploaded content and attempt to put it in the right place (or leave it in the "unassigned" prearchive)
Specifying an experiment label allows you to merge the content with existing data. See: Merging Duplicate or Updated Image Session Uploads |
Validate An Archive Operation
POST - /data/services/validate-archive
Parameters
src | Required body parameter: Only used when attempting to import a previously uploaded file
|
---|
Response
Can return a variety of codes if a session you are intending to archive found a match already in the archive, or ran into a conflict or other failure.
Refresh The Archive Catalog
The refresh catalog service is used to update catalog XMLs that are out of sync with the file system. This service can be used to store checksums for entries that are missing them, remove entries that no longer have valid files, or add new entries for files that have been manually added to the archive directory.
See: Catalog Refresh API