> For the complete documentation index, see [llms.txt](https://devdocs.olisystems.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devdocs.olisystems.com/uploading-oli-files.md).

# Uploading chemistry model files

Chemistry model files need to be uploaded to the OLI cloud so that they can be referenced in the calculation input parameters.&#x20;

### \[1] Upload directly via the API

## upload dbs file

<mark style="color:green;">`POST`</mark> `https://api.olisystems.com/channel/upload/dbs`

uploads the dbs file to the OLI cloud as **multipart/form-data**

#### Headers

| Name          | Type   | Description            |
| ------------- | ------ | ---------------------- |
| Authorization | string | Bearer {access\_token} |

{% tabs %}
{% tab title="200 " %}

```
{
  "file": [
    {
      "filename": "H2O-CO2.dbs", 
      "id": "fc8034d3-a6e3-4992-bc55-6c77c8d5b780"
    }
  ], 
  "status": "UPLOADED", 
  "type": "dbs"
}

```

{% endtab %}
{% endtabs %}

### Response description

| field              | type            | description                             |
| ------------------ | --------------- | --------------------------------------- |
| file               | array of object | information of files uploaded:          |
| file\[  ].filename | string          | name of file with extension             |
| file\[  ].id       | string          | unique identifier for the uploaded file |
| status             | string          | **"UPLOADED"** or **"FAILED"**          |
| type               | string          | type of file                            |

### \[2] Uploading chemistry model files via the web UI

1. Login to OLI Application Builder(<https://appbuilder.olisystems.com>) with username and password
2. Select the **username\_private** channel from the left pane
3. Go to the files tab in the center pane
4. Upload the dbs file using the "upload" button
5. Refresh the page if required.
6. Once uploaded, click on the file button on this pane&#x20;
7. On the right hand pane you can obtain the file id, this is used in API(s), it should look something like this: **aae24777-fa3f-44a2-8f51-e56bc58f3811**
