---
title: "Upload new version"
method: POST
path: "/v2.0/UploadNewVersion"
---

# Upload new version

`POST /v2.0/UploadNewVersion`

Upload a single file from your computer to Orange Logic as a new version of an existing asset

## Query parameters

- `AssetRecordID` string, required
- `FileName` string, required
- `Format` 'XML' | 'JSON', required
- `UploadMode` 'processInLine' | 'ProcessProxiesInBackground' | 'ProcessFullyInBackgroundLite' | 'ProcessFullyInBackground' | 'ProcessProxiesAndParentAndIndexInBackground'
- `Metadata` object
  - `[Custom_Metadata]` string — Enter a comma-separated list of field name and value pairs, enclosed in curly brackets <code>{}</code><br>Example: <code>{"CoreField.Title":"New asset title", "MyNameSpace.MyField":"Custom field value"}</code>
- `dateformat` string
- `Token` string

## Headers

- `Content-Type` string, required

## Request body

- object
  - `InputStream` string, binary, required — The file to upload.<br><br><span style="color: #46B8DA">ℹ️ Note</span> This file must be encoded as multipart/form-data. This call does not support base64-encoded strings.

## Response `200`

200

- object
  - `APIRequestInfo` object
    - `ProviderVersion` string
    - `ProviderIdentity` string
    - `ProviderID` string
    - `Module` string
    - `APIVersion` string
    - `Resource` string
    - `IsLoggedIn` boolean
    - `Status` string
    - `UserLogin` string
    - `Session` string
    - `TimeoutPeriodMinutes` integer
  - `APIResponse` object
    - `RequestInterpretation` object
      - `ParametersInformation` object
        - `AssetRecordID` object
          - `Value` string
          - `IsOptional` boolean
          - `ValueCount` integer
        - `InputStream` object
          - `Value` string
          - `IsOptional` boolean
          - `ValueCount` integer
        - `FileName` object
          - `Value` string
          - `IsOptional` boolean
          - `ValueCount` integer
        - `UploadMode` object
          - `Value` unknown
          - `IsOptional` boolean
          - `ValueCount` integer
        - `Metadata` object
          - `Value` string
          - `IsOptional` boolean
          - `ValueCount` integer
    - `Response` object
      - `AssetVersion` integer
    - `ExecutionStatus` string
    - `HTTPCode` integer
    - `Code` string

---

[API](https://skmtc.net/orangelogic/apis/security.md) · [All operations](https://skmtc.net/orangelogic/apis/security/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orangelogic/security/versions/c8e945426c5e/schema)
