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

###
