~ knotless Search/
↑↓ move↵ open⇧↵ all results

grain.social/grain

photography-focused photo sharing platform

grain.social
1 collaborator
0
2
33 lines · 874 B Raw History
{
  "lexicon": 1,
  "id": "dev.hatk.putRecord",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Create or update a record via the user's PDS.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["collection", "rkey", "record"],
          "properties": {
            "collection": { "type": "string" },
            "rkey": { "type": "string" },
            "record": { "type": "unknown" },
            "repo": { "type": "string", "format": "did" }
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "properties": {
            "uri": { "type": "string", "format": "at-uri" },
            "cid": { "type": "string", "format": "cid" }
          }
        }
      }
    }
  }
}