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.

[1] Upload directly via the API

upload dbs file

POST 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}

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

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

  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

Last updated