CreateRecordRequest

data class CreateRecordRequest(val repo: AtIdentifier, val collection: Nsid, val rkey: String? = null, val validate: Boolean? = true, val record: JsonContent, val swapCommit: Cid? = null)

Constructors

Link copied to clipboard
constructor(repo: AtIdentifier, collection: Nsid, rkey: String? = null, validate: Boolean? = true, record: JsonContent, swapCommit: Cid? = null)

Properties

Link copied to clipboard

The NSID of the record collection.

Link copied to clipboard

The record itself. Must contain a $type field.

Link copied to clipboard

The handle or DID of the repo (aka, current account).

Link copied to clipboard
val rkey: String? = null

The Record Key.

Link copied to clipboard
val swapCommit: Cid? = null

Compare and swap with the previous commit by CID.

Link copied to clipboard
val validate: Boolean? = true

Can be set to 'false' to skip Lexicon schema validation of record data.