v1
latestOpenAPI 3.0.32026-08-061810496.7 KBSecure spaces, folders & files
Create or upload new version of file
This route has 2 purposes: upload a file directly to Convoflo or create a new version from a file uploaded via AWS S3's SDK.
To upload a file directly, send the binary file as the file parameter. It must not be bigger than 25 MB.
To upload a file bigger than 25 MB, you need 2 additional API calls: "Prepare file" and "Get upload session token". See these APIs before calling this one. The order should be:
- Request upload session token
- Prepare file
- Upload to S3 using the AWS SDK with upload token credentials from step 1 and key from step 2.
- Call this API with the version string gotten from step 1.
post/api/1/documents/{userFile}/versions
Request body
Example request
{
"file": "b",
"version_id": 16,
"external_link": "http://bailey.com/"
}