The swrite REST interface can be used to write spectrum files on request from clients.
The query parameters are as follows:
Path to the file to write. Remember this file is written by SpecTcl and therefore the file path must not only be as SpecTcl would see it but a file writable by SpecTcl.
Each occurence of this query parameter names a spectrum to be written to file. At least one spectrum must be specified.
Specifies the output fie format. Note that by default, this is ascii.