POST Datasets

Basic POST operation to import one or more datasets into the database. Applies to all dataset types. A single dataset can be POSTed as well as a ZIP archive containing an arbitrary number of datasets.

Requests

Syntax

POST /processes
POST /flows
POST /flowproperties
POST /unitgroups
POST /sources
POST /contacts
POST /lciamethods

The content can be POSTed as application/xml (single dataset) or multipart/form-data (single dataset or ZIP archive). For the former case, the UUID of the data stock the data is to be stored in on the server side can optionally be specified as header parameter. For the latter, it can be transmitted as form parameter.

Form Parameters

Name Description
file The file input stream. Applies only for POSTing multipart/form-data.
Type: InputStream
Default: None (optional)
stock (optional) The UUID of the root data stock to store the dataset(s) in. Applies only for POSTing multipart/form-data.
Type: String
Default: None

Request Headers

Name Description
stock (optional) The UUID of the root data stock to store the dataset(s) in
Type: String
Default: None

Responses

If the import was successful, an HTTP 200 status code is returned along with a single datastock object that represents the datastock the imported dataset(s) has/have been stored in.

Response Elements

See Datastock Response Elements.

Examples

Sample Request

POST /processes
stock: 7c6fdb08-902e-48de-bb94-9600bf317331

Sample Response

HTTP/1.1 200 OK
Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dataStock xmlns="http://www.ilcd-network.org/ILCD/ServiceAPI" root="true">
    <uuid>7c6fdb08-902e-48de-bb94-9600bf317331</uuid>
    <shortName>default</shortName>
    <name xml:lang="en">Default root data stock</name>
    <description xml:lang="en">This is the default root data stock</description>
</dataStock>