~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
main
47 lines · 1.7 KB Raw History
{
  "lexicon": 1,
  "id": "org.atgrp.internal.putGroupDomain",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Serve the group at the domain of its handle, once the group has a handle on a domain of its own and that domain reaches this host: the domain answers the host's /.well-known/ and /xrpc/, its / leads to the group's page in the console, and the group's address and www. under the domain redirect to it. Until the handle changes or deleteGroupDomain. Requires group.configure.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["group"],
          "properties": {
            "group": {
              "type": "string",
              "format": "did",
              "description": "The group DID. Every method is served by the group's host and authorized against that group's roles."
            }
          }
        }
      },
      "errors": [
        {
          "name": "NoOwnDomain",
          "description": "The group's handle is its address here: it has no domain of its own to be served at."
        },
        {
          "name": "NotReaching",
          "description": "The domain does not reach this host yet: asked, it did not answer as this host. Its A and AAAA records should name this host's addresses."
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["domain"],
          "properties": {
            "domain": {
              "type": "string",
              "description": "The domain the group is served at: its handle, a domain of its own."
            }
          }
        }
      }
    }
  }
}