Interface FileUploadRequest._FinalStage
- All Known Implementing Classes:
FileUploadRequest.Builder
- Enclosing class:
FileUploadRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()externalId(String externalId) externalId(Optional<String> externalId) Stable, caller-supplied identifier for this document.ID of the folder in which to place this document.indexMode(FileUploadRequestIndexMode indexMode) indexMode(Optional<FileUploadRequestIndexMode> indexMode) Indexing strategy applied after the file is processed and its text is extracted.The document's structured data, as a flat key/value object.Optional ID of a record schema to bind this document to.The document's scope ownership, asnamespace:valueentries (at most 2 namespaces) — for example["org:6ba7b810-9dad-11d1-80b4-00c04fd430c8", "group:eng-team"].Whether the text extracted from this file is retained after indexing.Whentrueand a document with the sameexternalIdalready exists, apply the submittedpayload/titleto that existing document (a metadata upsert) before re-issuing the presigned URL.Owning user ID — the Vectros-assigned UUID of a user in your account.
-
Method Details
-
build
FileUploadRequest build() -
additionalProperty
-
additionalProperties
-
upsert
When
trueand a document with the sameexternalIdalready exists, apply the submittedpayload/titleto that existing document (a metadata upsert) before re-issuing the presigned URL. The file body is replaced inherently by the re-upload; it cannot be diffed at upload-init. Defaults tofalse. Requires thedocuments:uscope in addition todocuments:c. -
upsert
-
indexMode
Indexing strategy applied after the file is processed and its text is extracted.
HYBRIDruns both BM25 keyword and dense-vector semantic indexing (recommended).SEMANTICindexes only as dense vectors.TEXTindexes only with BM25.NONEis store-only (archival): the file is still uploaded and its text extracted, but it is not search-indexed — retrievable by id/download and structured-field lookup only. Optional: omit to inherit the bound schema's default index mode. If neither this field nor the schema specifies one, the request is rejected. When both are set, this per-file value wins. -
indexMode
-
storeText
Whether the text extracted from this file is retained after indexing. Defaults to true: the extracted text stays retrievable via
GET /v1/documents/{id}/textand usable byPOST /v1/documents/{id}/ask. Set false to discard the extracted text once indexing completes — search results and the original file download are unaffected, but/textreturns 404 and/askreturns 409 for the document. Fixed at ingest time: it cannot be changed later, and a re-upload to the same document keeps the original choice. -
storeText
-
folderId
ID of the folder in which to place this document. Omit to use your account's default root folder.
-
folderId
-
payload
The document's structured data, as a flat key/value object. When
schemaIdis set, declared fields are validated against the schema and its lookup fields become directly queryable (matching record and text-ingest behavior); undeclared keys pass through as free-form and are searchable via thefiltersparameter onPOST /v1/search. -
payload
-
schemaId
Optional ID of a record schema to bind this document to. When set, the document's
payloadis validated against the schema and its lookup fields become directly queryable (matching record and text-ingest behavior). -
schemaId
-
userId
Owning user ID — the Vectros-assigned UUID of a user in your account. Optional. With an API key, sets the document's owner explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
-
userId
-
scopes
The document's scope ownership, as
namespace:valueentries (at most 2 namespaces) — for example["org:6ba7b810-9dad-11d1-80b4-00c04fd430c8", "group:eng-team"].organdclientare built-in namespaces; others are custom scopes you define (lowercase, 2-32 chars). Resolve a namespace's UUID from your own identifier withGET /v1/entities/{namespace}?externalId=. When supplied, this is the document's COMPLETE scope declaration: for a token that stamps identity, entries must match the token's identity values, and an empty array creates a document owned by the calling user alone (the private tier). Omit the field to inherit the token's full identity — the default. Filter lists by these values with?scope=. -
scopes
-
externalId
Stable, caller-supplied identifier for this document. Optional. Immutable after create. Unique within your account and context: initiating an upload again with the same
externalIdreturns the same document plus a fresh presigned URL (idempotent — no duplicate), and it is the key other records use to reference this one. Max 256 characters. -
externalId
-