Uploading a Process API package

A process API package that is exported from OLI Flowsheet, and needs to be uploaded into the users account.

Uploading a package using the API

upload a Process API package

POST https://api.olisystems.com/channel/upload/package?status=Published

uploads the process API package to the OLI cloud as multipart/form-data

Headers

Name
Type
Description

Authorization*

String

Bearer {access_token}

Request Body

Name
Type
Description

files*

String

{
    "file": [
        {
            "filename": "OLIProcessAPI.pkg",
            "id": "6408237f-286c-402b-890a-e67f2453761b"
        }
    ],
    "status": "UPLOADED",
    "type": "package"
}

Response description

field
type
description

file

array object

uploaded package information:

file.filename

string

name of file with extension

file.id

string

unique identifier for the uploaded file ProcessId

status

string

"UPLOADED" or "FAILED"

type

string

type of file "package"

Last updated