Create Record Request
data class CreateRecordRequest(val repo: AtIdentifier, val collection: Nsid, val rkey: String? = null, val validate: Boolean? = null, val record: JsonContent, val swapCommit: Cid? = null)
Parameters
repo
The handle or DID of the repo (aka, current account).
collection
The NSID of the record collection.
rkey
The Record Key.
validate
Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons.
record
The record itself. Must contain a $type field.
swap Commit
Compare and swap with the previous commit by CID.
Constructors
Link copied to clipboard
constructor(repo: AtIdentifier, collection: Nsid, rkey: String? = null, validate: Boolean? = null, record: JsonContent, swapCommit: Cid? = null)