API Investigation:Create
From ToxBank API Wiki
(Difference between revisions)
Line 11: | Line 11: | ||
* type: one of no_data/unformated_data/ftp_data | * type: one of no_data/unformated_data/ftp_data | ||
* title: string | * title: string | ||
− | * | + | * abstract: string |
+ | * owning organisation: string | ||
+ | * authors: string | ||
+ | * keywords: string | ||
* ftp_file: one or multiple filenames (only if type is ftp_data) | * ftp_file: one or multiple filenames (only if type is ftp_data) | ||
|REST_header_param=subjectid:SECURITY-TOKEN | |REST_header_param=subjectid:SECURITY-TOKEN |
Revision as of 13:20, 2 May 2014
Description | Create a new investigation from ISA-TAB files |
---|---|
Resource | Investigation |
Method | POST |
URI | /investigation |
Parameters | optional params:
required params (when upload not in isa-tab format):
|
Header Parameters | subjectid:SECURITY-TOKEN |
Media Type (input) | multipart/form-data:
|
Results | Task URI |
Media Type (output) | text/uri-list |
Status code | 202 |
cURL example
curl -Lk -X POST -i -H "subjectid:MYTOKEN" -F file="@ExampleFilename.zip;type=application/zip" \ -d "allowReadByUser=USER_URI1,USER_URI2" -d "allowReadByGroup=GROUP_URI1,GROUP_URI2" -d 'summarySearchable=VALUE' https://services.toxbank.net/investigation
curl -Lk -X POST -i -H "subjectid:MYTOKEN" -d "type=NO_DATA" -d "title=STRING" -d "summary=STRING" \ -d "allowReadByUser=USER_URI1,USER_URI2" -d "allowReadByGroup=GROUP_URI1,GROUP_URI2" -d 'summarySearchable=VALUE' https://services.toxbank.net/investigation
curl -Lk -X POST -i -H "subjectid:MYTOKEN" -F file="@ExampleFilename.zip;type=application/zip" \ -d "type=UNFORMATED_DATA" -d "title=STRING" -d "summary=STRING" -d "allowReadByUser=USER_URI1,USER_URI2" -d "allowReadByGroup=GROUP_URI1,GROUP_URI2" \ -d 'summarySearchable=VALUE' https://services.toxbank.net/investigation
curl -Lk -X POST -i -H "subjectid:MYTOKEN" -d "type=FTP_DATA" -d "ftp_file=FILE_A,FILE_B" -d "title=STRING" -d "summary=STRING" \ -d "allowReadByUser=USER_URI1,USER_URI2" -d "allowReadByGroup=GROUP_URI1,GROUP_URI2" -d 'summarySearchable=VALUE' https://services.toxbank.net/investigation
Facts about API Investigation:CreateRDF feed
Acts on | Investigation + |
Has output media type | text/uri-list + |
Has status code | 202 + |