dev.blinkers.putView

Write a blink back through a lens, or create a record from one.

Repository @blinkers.dev did:web:blinkers.dev namespace authority
Details · procedure
Kindprocedure
Authorityblinkers.dev
Indexed
cid bafyreihlid5sq3jhchnmefmafaw7kmjrmbfmuj2vlke7gammnjl6ba7gfi

Checks

Valid
  • nullable-and-optional defs.main.input.schema.properties.swapRecordswapRecord is both nullable and optional.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Write a blink back through a lens, or create a record from one.",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "InvalidRequest"
        },
        {
          "name": "InvalidBlink"
        },
        {
          "name": "NotAllowed"
        },
        {
          "name": "InvalidSwap"
        },
        {
          "name": "RecordExists"
        },
        {
          "name": "WriteConflict"
        },
        {
          "name": "InvalidRecord"
        },
        {
          "name": "LensNotFound"
        },
        {
          "name": "RecordNotFound"
        },
        {
          "name": "RecordNotCovered"
        },
        {
          "name": "InvalidLens"
        },
        {
          "name": "UpstreamFailure"
        },
        {
          "name": "LexiconUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "nullable": [
            "swapRecord"
          ],
          "properties": {
            "lens": {
              "format": "at-uri",
              "type": "string"
            },
            "rkey": {
              "format": "record-key",
              "type": "string"
            },
            "swapRecord": {
              "description": "null means: only if the record doesn't exist yet.",
              "format": "cid",
              "type": "string"
            },
            "swapValue": {
              "type": "unknown"
            },
            "value": {
              "type": "unknown"
            }
          },
          "required": [
            "lens",
            "value"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            },
            "value": {
              "type": "unknown"
            }
          },
          "required": [
            "uri",
            "cid",
            "value"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "dev.blinkers.putView",
  "lexicon": 1
}