com.atproto.repo.putRecord
#main
Write a repository record, creating or updating it as needed. 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 to write. |
swapRecord | string (cid) | - | ❌ | Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation |
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 | ❌ | - |