Document → Upload
AI-generatedOverview
This node uploads a document to a specified data source within a space in the Dust platform. It is useful for scenarios where users need to programmatically add or update documents in their Dust workspace, such as automating document management or integrating document uploads into workflows. For example, a user can upload a text document with metadata like title, MIME type, tags, and source URL to a specific space and data source in Dust.
Use Case Examples
- Uploading a new document to a data source in Dust with metadata such as title and tags.
- Automating document uploads from an external system into Dust for further processing or analysis.
Properties
| Name | Meaning |
|---|---|
| Space ID | ID of the space where the document will be uploaded. |
| Data Source Name | Name of the data source within the space where the document will be uploaded. |
| Document ID | Unique identifier for the document being uploaded. |
| Document Content | The text content of the document to be uploaded. |
| Additional Fields | Optional fields to customize the upload, including async upload, light document output, MIME type, source URL, tags, and title. |
Output
JSON
json- The response from the Dust API after uploading the document, containing details about the uploaded document.
Dependencies
- Dust API credentials with workspace ID and region information
Troubleshooting
- Ensure the Space ID, Data Source Name, and Document ID are correct and exist in the Dust workspace.
- Verify that the Dust API credentials are valid and have the necessary permissions.
- Check the format and encoding of the Document Content to avoid upload errors.
- If using async upload, be aware that the response might not contain the full document details immediately.