---
title: "Upload excel file (base64)"
method: POST
path: "/ver2/DataService.svc/numericdata/uploadexcel2commands"
tags: ["Data"]
---

# Upload excel file (base64)

`POST /ver2/DataService.svc/numericdata/uploadexcel2commands`

## Request

- Base URL: `https://api.enviance.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enviance.com/ver2/DataService.svc/numericdata/uploadexcel2commands`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enviance/apis/restapi/docs/ver2/DataService.svc/numericdata/uploadexcel2commands/post.ts> (a function with typed inputs; its response is checked against the schema)

Upload excel file (base64)


Portal import. Upload excel template with async Multipart/FormData POST request. Use anyone (just one) input control on Rest API Test Tool to specify .xls-file to upload file and specify it

## Headers

- `EnvApi-Systemid` string
- `EnvApi-Packageid` string
- `EnvApi-Udf-DateTime-Iso-In-CustomFields` string
- `EnvApi-Udf-DateTime-ReadInUserTz` string
- `EnvApi-Udf-Value-Invariant` string
- `EnvApi-Localization-All` string
- `x-client-request-id` string

## Request body

- UploadExcel2Data
  - `fileInfo` EnvianceBusinessDataExcelFileInfo
    - `FileName` string
    - `MimeType` string
    - `ContentBase64` string
  - `intervalType` 'Minutes' | 'Hourly' | 'HourlyTimeBased' | 'Daily' | 'DailyTimeBased' | 'Weekly' | 'WeeklyTimeBased' | 'Monthly' | 'MonthlyTimeBased' | 'QuarterlyTimeBased' | 'Yearly' | 'YearlyTimeBased', enum
  - `allowQualityData` boolean
  - `timeForDaily` string

## Response `default`

not available

- EnvianceBusinessDataUploadExcel2Result
  - `CommandLog` EnvianceBusinessDataCommandInfo
    - `CommandLogID` string, guid
    - `ObjectID` string, guid
  - `ContainsError` boolean
  - `FileInfo` EnvianceBusinessDataExcelFileInfo
    - `FileName` string
    - `MimeType` string
    - `ContentBase64` string

---

[API](https://skmtc.dev/enviance/apis/restapi.md) - [All operations](https://skmtc.dev/enviance/apis/restapi/llms.txt) - [OpenAPI document](https://skmtc.dev/enviance/apis/restapi/revisions/45b2200a8cf2?raw)
