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-The Record Key.
validateboolean-Can be set to 'false' to skip Lexicon schema validation of record data.
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)--