at.protocube.getDraft

Read the caller's working draft for one record. Another user's draft is NotFound, never Forbidden.

Repository @protocube.at did:plc:it2qbdcai2lchnnnt3caynqx namespace authority
Details · query
Kindquery
Authorityprotocube.at
Commit rev3n275pbmow62v
Indexed
cid bafyreiapww4xfuinaezjohlmw3qiiqejwde5sun7uf6c4q4lo3etkij5cy

Checks

Valid Lint pass
JSONDownload
{
  "$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
}