Create a job to run an extractor on a collection or document
Creates a job to execute the specified extractor by running it on all documents in a collection, or on a single document when document_id is specified. This endpoint is designed for long-running extractions.
The endpoint immediately returns a 201 Created response with job details.
Exactly one of collection_id or document_id must be provided.
Request
- Base URLhttps://h2ogpte.genai.h2o.ai/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ID of the extractor to run
Query parameters
ID of the collection to run the extractor on. Exactly one of collection_id or document_id must be provided.
ID of the single document to run the extractor on. Exactly one of collection_id or document_id must be provided.
Timeout in seconds
Response
Job created successfully. The job has been accepted and is being processed. Use GET /jobs/{job_id} to check progress. Once completed, retrieve results using /extractors/{extractor_id}/results?job_id={job_id}.
Changes
No recorded changes to this operation across all 1 revision of this API.