Upload File
POSThttps://files-integration.inspectorio.com/signed-upload/:session_id
Upload File
Request​
Path Parameters
session_id stringrequired
- multipart/form-data
Body
filebinaryrequired
Responses​
- 201
- 400
- 500
File uploaded
- application/json
- Schema
- Example (auto)
Schema
data object
{
"data": {
"contentType": "ms-application/excel",
"createdAt": "2022-07-25T09:46:12+00:00",
"createdBy": "uuuu",
"dataSource": "integration-api",
"extension": "xls",
"fileId": "ef9cd482-596d-7a5d-8155-137463f056fd",
"fileName": "ab8cd482-596d-7a5d-8155-137463f243ac.xls",
"fileSize": "100500",
"fullHashSum": "C9025CC0FD86FF0A2B6B53AF58ACDE1B",
"lightHashSum": "C9025CC0FD86FF0A2B6B53AF58ACDE1B",
"orgId": "xxxx",
"originalExtension": "xls",
"originalName": "original file name",
"product": "sight",
"storage": {
"current": "standard",
"path": "/sight/xxxx/uuuu/ab8cd482-596d-7a5d-8155-137463f243ac.xls",
"ttl": 0
},
"storageName": "/sight/xxxx/uuuu/ab8cd482-596d-7a5d-8155-137463f243ac.xls",
"updatedAt": "2022-07-25T09:46:12+00:00",
"updatedBy": "uuuu",
"userId": "uuuu"
}
}
Bad request
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
messagestring
Example:
Bad Request
{
"errorCode": "Generic",
"message": "Bad Request"
}
Internal server error
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
errorsobject
Example:
{"system":["Internal error detail message"]}
messagestring
Example:
Internal server error
{
"errorCode": "Generic",
"errors": {
"system": [
"Internal error detail message"
]
},
"message": "Internal server error"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://files-integration.inspectorio.com/signed-upload/:session_id' \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json'
ResponseClear