Class FileUploadResponse.Builder
- Enclosing class:
FileUploadResponse
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()Whether this call created a new document.ISO-8601 UTC timestamp at which the presigned URL expires.externalId(String externalId) externalId(Optional<String> externalId) The stable identifier you supplied on the request, echoed back.from(FileUploadResponse other) Document ID assigned to this upload.Presigned upload URL.
-
Method Details
-
from
-
created
Whether this call created a new document. True when a new document was created; false when a document with the same
externalIdalready existed and a fresh upload URL to its existing object was re-issued (idempotent upload). Present only on the upload response (POST /v1/documents/upload). The HTTP status mirrors it — 201 when created, 200 when an existing document was returned. -
created
-
id
Document ID assigned to this upload. Poll
GET /v1/documents/{id}to track indexing status after the upload completes. -
id
-
uploadUrl
Presigned upload URL. Upload the raw file bytes directly to this URL with an HTTP PUT request, setting the Content-Type header to the
fileTypeyou provided. No Authorization header is needed — the URL is self-authenticating. -
uploadUrl
-
expiresAt
ISO-8601 UTC timestamp at which the presigned URL expires. The upload must complete before this time. Default expiry is 60 minutes.
-
expiresAt
-
externalId
The stable identifier you supplied on the request, echoed back. Immutable, and unique within your account and context. Null when you did not supply one.
-
externalId
-
build
-
additionalProperty
-
additionalProperties
-