Add tags to a file
Add one or more tags to a file without affecting existing tags.
Behavior:
- Adds new tags to the document while preserving existing ones
- New tags are marked as manually assigned (
auto_assigned=False) - Duplicate tags are ignored (no error if tag already exists on document)
Validation:
- Returns 400 if tag IDs are invalid or don’t belong to user’s company
- Returns 403 if user doesn’t have permission to edit the document
- Returns 404 if document doesn’t exist
Documentation Index
Fetch the complete documentation index at: https://docs.lighton.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Request serializer for adding tags to a file.
List of tag IDs to add to the file
1Response
Tags added successfully
Filename of the document
Workspace the document belongs to
Document summaries (all languages)
File extension of the document
Creation date of the resource
Total number of pages
Size of the file in bytes.
List of tags associated with the document
User who created the file. Null when the file was created by the system.
Upload session UUID associated with this document
TLSH hash for duplicate detection.
External document metadata
255pending- Pendingparsing- Parsingparsing_failed- Parsing Failedembedding- Embeddingembedding_failed- Embedding Failedembedded- Embeddedfail- Failupdating- Updating
pending, parsing, parsing_failed, embedding, embedding_failed, embedded, fail, updating pending- Pendingprocessing- Processingembedded- Embeddedfail- Fail-- Not available
pending, processing, embedded, fail, - Full text content of the document. Only included when include_content=true query parameter is provided.
Detailed error information. Only present when document processing has failed.
Parser/ingestion pipeline used for document processing (e.g., 'v2.1', 'v3.0').