Skip to main content

com.atproto.repo.putRecord

#main​

Write a repository record, creating or updating it as needed. 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 (record-key)-✅The Record Key.
validateboolean-❌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.
recordunknown-✅The record to write.
swapRecordstring (cid)-❌Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation
swapCommitstring (cid)-❌Compare and swap with the previous commit by CID.

Output​

  • Encoding: application/json
PropertyTypeKnown ValuesRequiredDescription
uristring (at-uri)-✅-
cidstring (cid)-✅-
commitcom.atproto.repo.defs#commitMeta-❌-
validationStatusstringvalid
unknown
❌-