Presign Upload Url
Authorization
x-api-key x-api-key<token>
In: header
Request Body
application/json
knowledgeBaseId*string
The ID of the knowledge base.
Length
36 <= length <= 36fileName*string
The name of the file to be uploaded.
Length
1 <= length <= 256size*number
The size of the file to be uploaded, in bytes.
Range
1 <= value <= 52428800Response Body
application/json
application/json
application/json
curl -X POST "https://retriever.denser.ai/api/open/v1/presignUploadUrl" \ -H "Content-Type: application/json" \ -d '{ "knowledgeBaseId": "stringstringstringstringstringstring", "fileName": "string", "size": 1 }'{
"success": true,
"data": {
"fileId": "string",
"uploadUrl": "string",
"expiresAt": "2019-08-24T14:15:22Z"
}
}{
"success": false,
"message": "string",
"data": {},
"errorCode": "STORAGE_LIMIT_EXCEEDED"
}{
"success": false,
"message": "string",
"data": {},
"errorCode": "INPUT_VALIDATION_FAILED"
}