PageSourceSearch

https://atprotodart.com/assets/js/1be4f095.012e5043.js

js atprotodart.com collected 2026-10-04 00:03:16 UTC 7,562 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkmy_website=globalThis.webpackChunkmy_website||[]).push([[42217],{20480(e,t,r){r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>d,default:()=>x,frontMatter:()=>o,metadata:()=>n,toc:()=>l});const n=JSON.parse('{"id":"lexicons/com/atproto/repo/putRecord","title":"putRecord","description":"com.atproto.repo.putRecord","source":"@site/docs/lexicons/com/atproto/repo/putRecord.md","sourceDirName":"lexicons/com/atproto/repo","slug":"/lexicons/com/atproto/repo/putRecord","permalink":"/docs/lexicons/com/atproto/repo/putRecord","draft":false,"unlisted":false,"editUrl":"https://github.com/myConsciousness/atproto.dart/blob/main/website/docs/lexicons/com/atproto/repo/putRecord.md","tags":[],"version":"current","frontMatter":{"title":"putRecord","description":"com.atproto.repo.putRecord"},"sidebar":"tutorialSidebar","previous":{"title":"listRecords","permalink":"/docs/lexicons/com/atproto/repo/listRecords"},"next":{"title":"strongRef","permalink":"/docs/lexicons/com/atproto/repo/strongRef"}}');var s=r(74848),i=r(28453);const o={title:"putRecord",description:"com.atproto.repo.putRecord"},d="com.atproto.repo.putRecord",c={},l=[{value:"#main",id:"main",level:2},{value:"Input",id:"input",level:3},{value:"Output",id:"output",level:3}];function h(e){const t={a:"a",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"comatprotorepoputrecord",children:(0,s.jsx)(t.a,{href:"https://github.com/myConsciousness/atproto.dart/blob/main/lexicons/com/atproto/repo/putRecord.json",children:"com.atproto.repo.putRecord"})})}),"\n",(0,s.jsx)(t.h2,{id:"main",children:"#main"}),"\n",(0,s.jsx)(t.p,{children:"Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS."}),"\n",(0,s.jsx)(t.h3,{id:"input",children:"Input"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Encoding"}),": application/json"]}),"\n"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Property"}),(0,s.jsx)(t.th,{children:"Type"}),(0,s.jsx)(t.th,{children:"Known Values"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Required"}),(0,s.jsx)(t.th,{children:"Description"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"repo"})}),(0,s.jsxs)(t.td,{children:["string (",(0,s.jsx)(t.a,{href:"https://atproto.com/specs/lexicon#at-identifier",children:"at-identifier"}),")"]}),(0,s.jsx)(t.td,{children:"-"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{children:"The handle or DID of the repo (aka, current account)."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"collection"})}),(0,s.jsxs)(t.td,{children:["string (",(0,s.jsx)(t.a,{href:"https://atproto.com/specs/nsid",children:"nsid"}),")"]}),(0,s.jsx)(t.td,{children:"-"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{children:"The NSID of the record collection."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"rkey"})}),(0,s.jsx)(t.td,{children:"string (record-key)"}),(0,s.jsx)(t.td,{children:"-"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{children:"The Record Key."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"validate"})}),(0,s.jsx)(t.td,{children:"boolean"}),(0,s.jsx)(t.td,{children:"-"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{children:"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."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"record"})}),(0,s.jsx)(t.td,{children:"unknown"}),(0,s.jsx)(t.td,{children:"-"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{children:"The record to write."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"swapRecord"})}),(0,s.jsxs)(t.td,{children:["string (",(0,s.jsx)(t.a,{href:"https://atproto.com/specs/repository#cid-formats",children:"cid"}),")"]}),(0,s.jsx)(t.td,{children:"-"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{children:"Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"swapCommit"})}),(0,s.jsxs)(t.td,{children:["string (",(0,s.jsx)(t.a,{href:"https://atproto.com/specs/repository#cid-formats",children:"cid"}),")"]}),(0,s.jsx)(t.td,{children:"-"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{children:"Compare and swap with the previous commit by CID."})]})]})]}),"\n",(0,s.jsx)(t.h3,{id:"output",children:"Output"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Encoding"}),": application/json"]}),"\n"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Property"}),(0,s.jsx)(t.th,{children:"Type"}),(0,s.jsx)(t.th,{children:"Known Values"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Required"}),(0,s.jsx)(t.th,{children:"Description"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"uri"})}),(0,s.jsxs)(t.td,{children:["string (",(0,s.jsx)(t.a,{href:"https://atproto.com/specs/at-uri-scheme",children:"at-uri"}),")"]}),(0,s.jsx)(t.td,{children:"-"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{children:"-"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"cid"})}),(0,s.jsxs)(t.td,{children:["string (",(0,s.jsx)(t.a,{href:"https://atproto.com/specs/repository#cid-formats",children:"cid"}),")"]}),(0,s.jsx)(t.td,{children:"-"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{children:"-"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"commit"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.a,{href:"/docs/lexicons/com/atproto/repo/defs#commitmeta",children:"com.atproto.repo.defs#commitMeta"})}),(0,s.jsx)(t.td,{children:"-"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{children:"-"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"val
1idationStatus"})}),(0,s.jsx)(t.td,{children:"string"}),(0,s.jsxs)(t.td,{children:["valid",(0,s.jsx)("br",{}),"unknown"]}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{children:"-"})]})]})]})]})}function x(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},28453(e,t,r){r.d(t,{R:()=>o,x:()=>d});var n=r(96540);const s={},i=n.createContext(s);function o(e){const t=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(i.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.