API Protocol:UploadTemplate
From ToxBank API Wiki
(Difference between revisions)
m (Created page with "{{REST Operations |REST_op_description=Uploads a template, to be assigned to a protocol |REST_op_method=POST |REST_op_uri=/protocol/{id}/template |REST_op_params=TBD, template fi...") |
m |
||
Line 5: | Line 5: | ||
|REST_op_params=TBD, template file content in multipart web form, with predefined metadata | |REST_op_params=TBD, template file content in multipart web form, with predefined metadata | ||
|REST_op_mime_input=multipart web form - application/x-www-form-urlencoded, RDF, JSON | |REST_op_mime_input=multipart web form - application/x-www-form-urlencoded, RDF, JSON | ||
− | |REST_op_result=URI of the new template, e.g. /protocol/P123/template/T45 | + | |REST_op_result=Task URI, when complete - URI of the new template, e.g. /protocol/P123/template/T45 |
|REST_op_mime_output=text/uri-list | |REST_op_mime_output=text/uri-list | ||
|REST_op_status=200,400,401,402,403 | |REST_op_status=200,400,401,402,403 | ||
}} | }} | ||
− | |||
[[http://api.toxbank.net/index.php/Special:FormEdit/REST_OperationsForm/API_Protocol:UploadTemplate Edit ]] | [[http://api.toxbank.net/index.php/Special:FormEdit/REST_OperationsForm/API_Protocol:UploadTemplate Edit ]] |
Revision as of 19:09, 15 September 2011
Description | Uploads a template, to be assigned to a protocol |
---|---|
Resource | [[]] |
Method | POST |
URI | /protocol/{id}/template |
Parameters | TBD, template file content in multipart web form, with predefined metadata |
Header Parameters | |
Media Type (input) | multipart web form - application/x-www-form-urlencoded, RDF, JSON |
Results | Task URI, when complete - URI of the new template, e.g. /protocol/P123/template/T45 |
Media Type (output) | text/uri-list |
Status code | 200,400,401,402,403 |
Facts about API Protocol:UploadTemplateRDF feed
Acts on | |
Has output media type | text/uri-list + |
Has status code | 200,400,401,402,403 + |