com.atproto.repo.createRecord

Create a single new repository record. 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 itself. Must contain a $type field.

repo

requiredstring · at-identifier

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

rkey

string · record-key

The Record Key.

  • maxLength: 512

swapCommit

string · cid

Compare and swap with the previous commit by CID.

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

Indicates that 'swapCommit' didn't match current repo commit.

Similar lexicons

semantic match

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