API Investigation:Create
From ToxBank API Wiki
(Difference between revisions)
Mrautenberg (Talk | contribs) |
Mrautenberg (Talk | contribs) |
||
Line 14: | Line 14: | ||
|REST_op_status=202 | |REST_op_status=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 |
Revision as of 10:35, 12 December 2013
Description | Create a new investigation from ISA-TAB files |
---|---|
Resource | Investigation |
Method | POST |
URI | /investigation |
Parameters | optional params:
|
Header Parameters | subjectid:SECURITY-TOKEN |
Media Type (input) | multipart/form-data, upload ISA-TAB files (isa-tab zip archive) |
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
Facts about API Investigation:CreateRDF feed
Acts on | Investigation + |
Has output media type | text/uri-list + |
Has status code | 202 + |