PUT operations to assign datasets to a specific data stock. Therefore the assigner has to authenticate either by logging in or via Authentication token (see 'Chapter Authentication : Token-Based' for more information). Applies to all dataset types.
PUT /datastocks/{datastock-uuid}/processes/{dataset-uuid}[?version={version}&withDependencies={dependenciesmode}]
PUT /datastocks/{datastock-uuid}/flows/{dataset-uuid}[?version={version}&withDependencies={dependenciesmode}]
PUT /datastocks/{datastock-uuid}/flowproperties/{dataset-uuid}[?version={version}&withDependencies={dependenciesmode}]
PUT /datastocks/{datastock-uuid}/unitgroups/{dataset-uuid}[?version={version}&withDependencies={dependenciesmode}]
PUT /datastocks/{datastock-uuid}/sources/{dataset-uuid}[?version={version}&withDependencies={dependenciesmode}]
PUT /datastocks/{datastock-uuid}/contacts/{dataset-uuid}[?version={version}&withDependencies={dependenciesmode}]
PUT /datastocks/{datastock-uuid}/lciamethods/{dataset-uuid}[?version={version}&withDependencies={dependenciesmode}]
The request parameters are
Name | Description |
---|---|
withDependencies | The dependencies mode of the data set |
The dependencies modes are: | |
- 0: none (selected entries only) | |
- 1: including reference flow(s) | |
- 2: all from same data stock | |
- 3: all | |
Optional | |
Values: 0,1,2,3 | |
Default: None | |
version | The version of the dataset. |
Optional | |
Values: **.**.*** | |
Default: None |
The response returned is a message as a String reporting whether dataset could be assigned or reporting what went wrong during assignment.
PUT
/datastocks/aca74e60-146e-11e2-892e-0800200c9a66/processes/3fc467e6-280d-4de0-a426-a036b6a30c99?withDependencies=3&version=03.000.000
HTTP/1.1 200 OK
Content-Type: application/xml
Dataset has been assigned to data stock.
HTTP/1.1 200 OK
Content-Type: application/xml
Dataset with its dependencies has been assigned to data stock.
HTTP/1.1 200 OK
Content-Type: application/xml
Dataset is already assigned to data stock.
HTTP/1.1 401 UNAUTHORIZED
Content-Type: application/xml
Data stock is not correctly set.
HTTP/1.1 401 UNAUTHORIZED
Content-Type: application/xml
Data stock must be a logical data stock.
HTTP/1.1 401 UNAUTHORIZED
Content-Type: application/xml
You are not permitted to assign datasets to this data stock.
HTTP/1.1 401 UNAUTHORIZED
Content-Type: application/xml
Dataset with given UUID and/or version is not existing in database.
HTTP/1.1 401 UNAUTHORIZED
Content-Type: application/xml
Dataset with given UUID is not existing in database.
HTTP/1.1 401 UNAUTHORIZED
Content-Type: application/xml
Version is not in a correct format.
HTTP/1.1 401 UNAUTHORIZED
Content-Type: application/xml
Dependencies mode is not legal.
HTTP/1.1 500 INTERNAL SERVER ERROR
Content-Type: application/xml
Dataset could not be assigned to data stock.
~~~~