KekUpload API
POST ~/f/{stream}/{hash}
Finalize an upload stream. See workflow for more information.
Params
stream
The stream which you get from the create route. See workflow and stream for more information.hash
The hash of all the chunks that have been uploaded using the upload route. See workflow and hash for more information.Request
cURL
curl --request POST \
--data ""
--url ~/f/{stream}/{hash}
Responses
200 - Ok
{
"id": "{id}"
}
400 - Bad Request
{
"generic": "HASH_MATCH",
"field": "HASH",
"error": "Hash doesn't match"
}
404 - Not Found
{
"generic": "NOT_FOUND",
"field": "STREAM",
"error": "Stream not found"
}
500 - Internal Server Error
{
"generic": "FS_RENAME",
"field": "FILE",
"error": "Error while renaming file: {error}"
}
{
"generic": "DB_QUERY",
"field": "QUERY",
"error": "Error while inserting file: {error}"
}