Create Documents
Create multiple documents in the Odoo system and associate them with a specific Quantum AI agent.Endpoint
Authentication
Input Parameters
Body Parameters
Document owner ID
Company ID
Quantum AI agent ID
Array of documents to create. Each document must contain:
Responses
Usage Examples
Example 1: Multiple documents
Example 2: Simple text document
Common MIME Types
Documents
Documents
- PDF:
application/pdf - Word:
application/msword - Word (nuevo):
application/vnd.openxmlformats-officedocument.wordprocessingml.document - Excel:
application/vnd.ms-excel - Excel (nuevo):
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Images
Images
- JPEG:
image/jpeg - PNG:
image/png - GIF:
image/gif - WebP:
image/webp
Text and Others
Text and Others
- Plain text:
text/plain - ZIP:
application/zip - JSON:
application/json - XML:
application/xml
Important Considerations
Validations
- All required fields must be present
- IDs must be valid integers
- The
documentsarray cannot be empty - Base64 content must be valid
- Company, Agent and Owner must exist
Behavior
- Individual processing per document
- Automatic logging of errors and successes
- Automatic linking to agent
- Creation in attachment and document
Limits
- Consider size limits for large files
- No specific limit on number of documents
- Possible timeouts on large requests
Troubleshooting
Error: "Invalid base64 content"
Error: "Invalid base64 content"
Solution: Verify that the base64 content is valid
Error: "Agent not found"
Error: "Agent not found"
Solution: Verify that the agent exists and is active:
- The agent must have
active = True - The ID must be correct
Error: "Owner not found"
Error: "Owner not found"
Solution: Contact your system administrator to verify the owner ID and ensure proper user access permissions.
Version: 1.0
Last updated: 2025-01-13
Last updated: 2025-01-13