Step 1: Initiate Upload
Call thecreateSignedStorage endpoint to register the file and obtain a temporary pre-signed S3 upload URL.
Endpoint
POST /v1/process/knowledges/createSignedStorage
Body Parameters
string
required
The unique identifier for the sub-project.
string
required
The target name of the file to create.
string
required
Mime-type of the file being uploaded.
string
required
The target storage plugin.
Response Fields
object
object
Request Example
Response Example
Step 2: Upload File to S3
Perform a standard HTTP multi-part form POST request to the AWS S3 URL returned in Step 1. You must include all key-value pairs from theaws.fields object as form fields, and append the file field last.
Request Example
Step 3: Finalize Upload
After S3 responds with a successful upload status code (204 No Content), call the closeSignedStorage endpoint to verify the file’s presence, unlock it, and retrieve its complete metadata.
Endpoint
POST /v1/process/knowledges/closeSignedStorage
Body Parameters
string
required
The unique identifier for the sub-project.
string
required
The unique ID of the file record to close.
Response Fields
object
