| Required role: | super-admin |
| POST | /import-from-excel |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DataFile | body | IHttpFile | Yes | |
| IsInternal | body | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Name | form | string | No | |
| FileName | form | string | No | |
| ContentLength | form | long | No | |
| ContentType | form | string | No | |
| InputStream | form | Stream | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Rows | form | List<List<String>> | Yes | |
| MaxColumnR | form | decimal | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /import-from-excel HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
isInternal: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
rows:
[
[
String
]
],
maxColumnR: 0
}