atproto blogging
at main 65 lines 1.8 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": [ 13 "repo", 14 "collection", 15 "rkey" 16 ], 17 "properties": { 18 "collection": { 19 "type": "string", 20 "description": "The NSID of the record collection.", 21 "format": "nsid" 22 }, 23 "repo": { 24 "type": "string", 25 "description": "The handle or DID of the repo (aka, current account).", 26 "format": "at-identifier" 27 }, 28 "rkey": { 29 "type": "string", 30 "description": "The Record Key.", 31 "format": "record-key" 32 }, 33 "swapCommit": { 34 "type": "string", 35 "description": "Compare and swap with the previous commit by CID.", 36 "format": "cid" 37 }, 38 "swapRecord": { 39 "type": "string", 40 "description": "Compare and swap with the previous record by CID.", 41 "format": "cid" 42 } 43 } 44 } 45 }, 46 "output": { 47 "encoding": "application/json", 48 "schema": { 49 "type": "object", 50 "properties": { 51 "commit": { 52 "type": "ref", 53 "ref": "com.atproto.repo.defs#commitMeta" 54 } 55 } 56 } 57 }, 58 "errors": [ 59 { 60 "name": "InvalidSwap" 61 } 62 ] 63 } 64 } 65}