{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotAuthorized"
        },
        {
          "name": "RateLimited"
        },
        {
          "name": "QuotaExceeded"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "collection": {
              "format": "nsid",
              "type": "string"
            },
            "record": {
              "type": "unknown"
            },
            "repo": {
              "format": "did",
              "type": "string"
            },
            "rkey": {
              "format": "record-key",
              "type": "string"
            },
            "space": {
              "format": "at-uri",
              "type": "string"
            },
            "validate": {
              "type": "boolean"
            }
          },
          "required": [
            "space",
            "repo",
            "collection",
            "rkey",
            "record"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Write-proxy alias of com.atproto.space.putRecord. The body is the standard space write shape. The proxy authorizes the caller's delegation for both create and update before forwarding the canonical method.",
  "id": "party.whey.writeproxy.putRecord",
  "lexicon": 1
}
