# 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**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devdocs.olisystems.com/uploading-oli-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
