API Protocol:UploadTemplate
From ToxBank API Wiki
(Difference between revisions)
Line 3: | Line 3: | ||
|REST_resource=Protocol | |REST_resource=Protocol | ||
|REST_op_method=POST | |REST_op_method=POST | ||
− | |REST_op_uri=/protocol/{id}/ | + | |REST_op_uri=/protocol/{id}/datatemplate |
|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 |
Revision as of 11:46, 19 November 2011
Description | Uploads a template, to be assigned to a protocol |
---|---|
Resource | Protocol |
Method | POST |
URI | /protocol/{id}/datatemplate |
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,202,400,401,402,403 |
Facts about API Protocol:UploadTemplateRDF feed
Acts on | Protocol + |
Has output media type | text/uri-list + |
Has status code | 200,202,400,401,402,403 + |