com.atproto.repo.createRecord
#main
Create a single new repository record. Requires auth, implemented by PDS.
Input
- Encoding: application/json
Property | Type | Known Values | Required | Description |
---|---|---|---|---|
repo | string (at-identifier) | - | ✅ | The handle or DID of the repo (aka, current account). |
collection | string (nsid) | - | ✅ | The NSID of the record collection. |
rkey | string | - | ❌ | The Record Key. |
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. |
record | unknown | - | ✅ | The record itself. Must contain a $type field. |
swapCommit | string (cid) | - | ❌ | Compare and swap with the previous commit by CID. |
Output
- Encoding: application/json
Property | Type | Known Values | Required | Description |
---|---|---|---|---|
uri | string (at-uri) | - | ✅ | - |
cid | string (cid) | - | ✅ | - |
commit | com.atproto.repo.defs#commitMeta | - | ❌ | - |
validationStatus | string | valid unknown | ❌ | - |