Data Hub
Lab Notebooks

Delete a lab notebook

Requires scope `lab-notebooks:write`. Marks the lab notebook deleted. Its runs keep their place in it, so restoring the lab notebook brings them back. Until then, runs don't list it and `has_lab_notebook` doesn't count it. Returns 409 when it is already deleted. A token that registered a watcher gets 403. It may only add its own instrument's runs to a lab notebook and remove them.

DELETE
/lab-notebooks/{labNotebookId}

Requires scope lab-notebooks:write. Marks the lab notebook deleted. Its runs keep their place in it, so restoring the lab notebook brings them back. Until then, runs don't list it and has_lab_notebook doesn't count it. Returns 409 when it is already deleted. A token that registered a watcher gets 403. It may only add its own instrument's runs to a lab notebook and remove them.

Authorization

bearerAuth
AuthorizationBearer <token>

Personal access tokens begin with dhub_… and are restricted by their assigned scopes.

In: header

Path Parameters

labNotebookId*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/lab-notebooks/9b2c4e1a-7d3f-4a5b-8c6d-0e1f2a3b4c5d"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "url": "string",  "url_key": "string",  "name": "string",  "description": "string",  "owner": {    "id": "string",    "displayName": "string",    "initials": "string",    "avatarUrl": "string"  },  "run_count": 0,  "instrument_count": 0,  "last_run_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "created_by": {    "id": "string",    "displayName": "string",    "initials": "string",    "avatarUrl": "string"  },  "created_by_token": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string"  },  "updated_at": "2019-08-24T14:15:22Z",  "updated_by": {    "id": "string",    "displayName": "string",    "initials": "string",    "avatarUrl": "string"  },  "updated_by_token": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string"  },  "deleted_at": "2019-08-24T14:15:22Z",  "deleted_by": {    "id": "string",    "displayName": "string",    "initials": "string",    "avatarUrl": "string"  },  "deleted_by_token": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}