Class FileUploadRequest
java.lang.Object
ai.vectros.resources.documents.requests.FileUploadRequest
-
Method Details
-
getUpsert
- Returns:
- 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.
-
getFileName
- Returns:
- Original file name, including its extension. Used as the document title when no separate title is provided.
-
getFileType
- Returns:
- MIME type of the file being uploaded. Used to set the correct Content-Type on the stored object.
-
getIndexMode
- Returns:
- 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.
-
getFolderId
- Returns:
- ID of the folder in which to place this document. Omit to use your account's default root folder.
-
getPayload
- Returns:
- 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.
-
getSchemaId
- Returns:
- 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).
-
getUserId
- Returns:
- 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.
-
getOrgId
- Returns:
- Owning organization ID — the Vectros-assigned UUID of an organization in your account. Optional. With an API key, sets the document's owning organization explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
-
getClientId
- Returns:
- Associated client ID — the Vectros-assigned UUID of a client in your account. Optional. With an API key, sets the document's client explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
-
getExternalId
- Returns:
- 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.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-