Class RecordRequest.Builder
- Enclosing class:
RecordRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()Identifier of the associated client — the Vectros-assigned UUID of a client in your account.expectedVersion(Long expectedVersion) expectedVersion(Optional<Long> expectedVersion) Optimistic-concurrency token.externalId(String externalId) externalId(Optional<String> externalId) Your own stable identifier for this record.Identifier of the folder to group this record with related documents.from(RecordRequest other) indexMode(RecordRequestIndexMode indexMode) indexMode(Optional<RecordRequestIndexMode> indexMode) Per-record override of the search-index mode.Identifier of the owning organization — the Vectros-assigned UUID of an organization in your account.The record's data payload — a JSON object whose structure is validated against the referenced schema.Identifier of the schema to validate against.Record lifecycle status.The record type, matching a schema's record type.Identifier of the owning user — the Vectros-assigned UUID of a user in your account.
-
Method Details
-
from
-
typeName
The record type, matching a schema's record type. Provide
typeNameorschemaId(at least one is required); when onlyschemaIdis given, the type is resolved from the schema, and when both are given they must agree. Immutable after creation and ignored on update. -
typeName
-
schemaId
Identifier of the schema to validate against. Optional: omit it and the server resolves the schema from
typeName(record types are unique within your account and context); supply it (and omittypeName) to pin a schema and resolve the type from it. ProvidetypeNameorschemaId(at least one); when both are given the server checks that they agree. Immutable after creation and ignored on update. -
schemaId
-
payload
The record's data payload — a JSON object whose structure is validated against the referenced schema. Fields the schema marks as searchable contribute to full-text and semantic search. On update, the supplied object replaces the stored payload in full (it is not key-merged); omit it to leave the payload unchanged.
-
payload
-
status
Record lifecycle status. Defaults to ACTIVE. Use it to model soft-delete or workflow states without physically deleting records.
-
status
-
folderId
Identifier of the folder to group this record with related documents. On create, omit to leave the record ungrouped. On update, omit to leave it unchanged; once set, this field cannot be cleared.
-
folderId
-
userId
Identifier of the owning user — the Vectros-assigned UUID of a user in your account. Optional, and may be set automatically from the calling token's identity. Use
GET /v1/users?externalId=to resolve the UUID from your own identifier. -
userId
-
orgId
Identifier of the owning organization — the Vectros-assigned UUID of an organization in your account. Optional, and may be set automatically from the calling token's identity. Use
GET /v1/orgs?externalId=to resolve the UUID from your own identifier. -
orgId
-
clientId
Identifier of the associated client — the Vectros-assigned UUID of a client in your account. Optional, and may be set automatically from the calling token's identity. Use
GET /v1/clients?externalId=to resolve the UUID from your own identifier. -
clientId
-
externalId
Your own stable identifier for this record. Optional, and immutable after create. Unique within your account, context, and record type: posting again with the same
externalIdreturns the existing record (idempotent create), and it is the key other records reference. Maximum 256 characters. -
externalId
-
indexMode
Per-record override of the search-index mode. HYBRID, SEMANTIC, and TEXT index this record for search; NONE is store-only (persisted, retrievable by id, and findable by structured-field lookup, but not searchable). Optional — omit it to inherit the schema's type-level default index mode (which itself defaults to NONE when the schema declares none). When both are set, this per-record value wins. Immutable after create.
-
indexMode
-
expectedVersion
Optimistic-concurrency token. Pass the
versionyou last read (from a fetch or a prior write response) to make this update conditional — it is rejected with 409 VERSION_CONFLICT if the record was modified since, leaving the stored record untouched. Omit it for last-write-wins (the default). Ignored on create. -
expectedVersion
-
build
-
additionalProperty
-
additionalProperties
-