PUT operations to remove assigned datasets from a specific logical data stock. Therefore the operator has to authenticate either by logging in or via Authentication token (see "Chapter Authentication : Token-Based" for more information). Applies to all dataset types.
DELETE /datastocks/{datastock-uuid}/processes/{dataset-uuid}[?version={version}&withDependencies={dependenciesmode}]
DELETE /datastocks/{datastock-uuid}/flows/{dataset-uuid}[?version={version}&withDependencies={dependenciesmode}]
DELETE /datastocks/{datastock-uuid}/flowproperties/{dataset-uuid}[?version={version}&withDependencies={dependenciesmode}]
DELETE /datastocks/{datastock-uuid}/unitgroups/{dataset-uuid}[?version={version}&withDependencies={dependenciesmode}]
DELETE /datastocks/{datastock-uuid}/sources/{dataset-uuid}[?version={version}&withDependencies={dependenciesmode}]
DELETE /datastocks/{datastock-uuid}/contacts/{dataset-uuid}[?version={version}&withDependencies={dependenciesmode}]
DELETE /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 root 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 assigned dataset could be removed from data stock or reporting what went wrong during removal.
DELETE
/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 removed from data stock.
HTTP/1.1 200 OK
Content-Type: application/xml
Dataset with its dependencies has been removed from 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 operate on this data stock.
HTTP/1.1 200 OK
Content-Type: application/xml
Dataset with given UUID and version is not assigned to data stock.
HTTP/1.1 401 UNAUTHORIZED
Content-Type: application/xml
Dataset with given UUID is not assigned to data stock.
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 removed from data stock.
~~~~