com.atproto.repo.putRecord

Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS.

Details · procedure
Kindprocedure
Authorityrepo.atproto.com
Indexed

Procedure

procedure · POST

Input

application/json

collection

requiredstring · nsid

The NSID of the record collection.

record

requiredunknown

The record to write.

repo

requiredstring · at-identifier

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

rkey

requiredstring · record-key

The Record Key.

  • maxLength: 512

swapCommit

string · cid

Compare and swap with the previous commit by CID.

swapRecord

string · cid

Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation

  • nullable

validate

boolean

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.

Output

application/json

cid

requiredstring · cid

uri

requiredstring · at-uri
  • knownValues: valid | unknown

Errors

InvalidSwap

No description in schema.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.