# Uploading a Process API package

### Uploading a package using the API

## upload a Process API package

<mark style="color:green;">`POST`</mark> `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<mark style="color:red;">\*</mark> | String | Bearer {access\_token} |

#### Request Body

| Name                                    | Type   | Description |
| --------------------------------------- | ------ | ----------- |
| files<mark style="color:red;">\*</mark> | String |             |

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

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

```

{% endtab %}

{% tab title="400: Bad Request Check returned "message" for details" %}

```javascript
{
    "message": "Authorization 'Bearer ' Token not found",
    "status": "FAILED"
}
```

{% endtab %}
{% endtabs %}

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

###


---

# 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/group2/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.
