a tool for shared writing and social publishing
at debug/datetime 57 lines 1.7 kB view raw
1{ 2 "lexicon": 1, 3 "id": "com.atproto.repo.deleteRecord", 4 "defs": { 5 "main": { 6 "type": "procedure", 7 "description": "Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS.", 8 "input": { 9 "encoding": "application/json", 10 "schema": { 11 "type": "object", 12 "required": ["repo", "collection", "rkey"], 13 "properties": { 14 "repo": { 15 "type": "string", 16 "format": "at-identifier", 17 "description": "The handle or DID of the repo (aka, current account)." 18 }, 19 "collection": { 20 "type": "string", 21 "format": "nsid", 22 "description": "The NSID of the record collection." 23 }, 24 "rkey": { 25 "type": "string", 26 "format": "record-key", 27 "description": "The Record Key." 28 }, 29 "swapRecord": { 30 "type": "string", 31 "format": "cid", 32 "description": "Compare and swap with the previous record by CID." 33 }, 34 "swapCommit": { 35 "type": "string", 36 "format": "cid", 37 "description": "Compare and swap with the previous commit by CID." 38 } 39 } 40 } 41 }, 42 "output": { 43 "encoding": "application/json", 44 "schema": { 45 "type": "object", 46 "properties": { 47 "commit": { 48 "type": "ref", 49 "ref": "com.atproto.repo.defs#commitMeta" 50 } 51 } 52 } 53 }, 54 "errors": [{ "name": "InvalidSwap" }] 55 } 56 } 57}