Skip to main content

com.atproto.repo.createRecord

#main

Create a single new repository record. Requires auth, implemented by PDS.

Input

  • Encoding: application/json
PropertyTypeKnown ValuesRequiredDescription
repostring (at-identifier)-The handle or DID of the repo (aka, current account).
collectionstring (nsid)-The NSID of the record collection.
rkeystring-The Record Key.
validateboolean-Can be set to 'false' to skip Lexicon schema validation of record data.
recordunknown-The record itself. Must contain a $type field.
swapCommitstring (cid)-Compare and swap with the previous commit by CID.

Output

  • Encoding: application/json
PropertyTypeKnown ValuesRequiredDescription
uristring (at-uri)--
cidstring (cid)--