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

grain.social/grain

photography-focused photo sharing platform

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