POST
/
documents
/
{org_id}
/
{flow_id}
/
{node_id}
/
{user_id}
import requests
import json

url = "https://api.stack-ai.com/documents/{org_id}/{flow_id}/{node_id}/{user_id}"
headers = {
"Authorization": "Bearer <your-private-key>",
"Content-Type": "application/json"
}

List_of_file_paths = ["/path/to/updated_document1.pdf", "/path/to/updated_document2.pdf"]
files = [("files", open(file_path, "rb")) for file_path in List_of_file_paths]

response = requests.post(url, headers=headers, files=files)

{}
import requests
import json

url = "https://api.stack-ai.com/documents/{org_id}/{flow_id}/{node_id}/{user_id}"
headers = {
"Authorization": "Bearer <your-private-key>",
"Content-Type": "application/json"
}

List_of_file_paths = ["/path/to/updated_document1.pdf", "/path/to/updated_document2.pdf"]
files = [("files", open(file_path, "rb")) for file_path in List_of_file_paths]

response = requests.post(url, headers=headers, files=files)

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

org_id
string
required

The organization ID

user_id
string
required

The user ID

flow_id
string
required

The flow ID of the document

node_id
string
required

The node ID of the document

Body

multipart/form-data
file
file

Response

200
application/json
Successful Response

The response is of type object.