at.protocube.getDraft
Read the caller's working draft for one record. Another user's draft is NotFound, never Forbidden.
Details · query
| Kind | query |
|---|---|
| Authority | protocube.at |
| Commit rev | 3n275pbmow62v |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"draftRecord": {
"properties": {
"baseCid": {
"format": "cid",
"type": "string"
},
"payload": {
"type": "unknown"
},
"updatedAt": {
"format": "datetime",
"type": "string"
}
},
"required": [
"payload",
"updatedAt"
],
"type": "object"
},
"draftView": {
"properties": {
"draft": {
"ref": "#draftRecord",
"type": "ref"
}
},
"required": [
"draft"
],
"type": "object"
},
"main": {
"description": "Read the caller's working draft for one record. Another user's draft is NotFound, never Forbidden.",
"errors": [
{
"name": "NotFound"
},
{
"name": "InvalidRequest"
},
{
"name": "Unauthorized"
}
],
"output": {
"encoding": "application/json",
"schema": {
"ref": "#draftView",
"type": "ref"
}
},
"parameters": {
"properties": {
"collection": {
"format": "nsid",
"type": "string"
},
"rkey": {
"format": "record-key",
"type": "string"
}
},
"required": [
"collection",
"rkey"
],
"type": "params"
},
"type": "query"
}
},
"id": "at.protocube.getDraft",
"lexicon": 1
}