us.off-the-clock.subspace.putMembers

Add members to a subspace, or replace existing members' read, write and admin values, in a single change. A DID named twice takes its last entry. All or nothing: any refusal refuses the whole call. Auth: OAuth as the authority with manage=update, or service auth from a subspace admin.

Details · procedure
Kindprocedure
Authoritysubspace.off-the-clock.us
Commit rev3n27y4ll5zzkd
Indexed
cid bafyreidnmnfl3jkrzbwbqa6es3p6dk74rfesma32pzpapi2gmvlpthmv4m

Checks

Valid
  • endpoint-output-undefined defs.mainNo output is defined. Endpoints should define one, even an empty one.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Add members to a subspace, or replace existing members' read, write and admin values, in a single change. A DID named twice takes its last entry. All or nothing: any refusal refuses the whole call. Auth: OAuth as the authority with manage=update, or service auth from a subspace admin.",
      "errors": [
        {
          "name": "SpaceNotFound"
        },
        {
          "description": "The space is not governed by the subspace policy.",
          "name": "PolicyMismatch"
        },
        {
          "name": "NotAuthorized"
        },
        {
          "description": "The space has a parent and a DID lacks parent membership.",
          "name": "ParentMembershipRequired"
        },
        {
          "description": "Setting admin, or changing an admin's entry, requires the authority.",
          "name": "AuthorityRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "members": {
              "items": {
                "ref": "us.off-the-clock.subspace.defs#member",
                "type": "ref"
              },
              "maxLength": 100,
              "type": "array"
            },
            "space": {
              "description": "Reference to the subspace.",
              "format": "space-ref",
              "type": "string"
            }
          },
          "required": [
            "space",
            "members"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "us.off-the-clock.subspace.putMembers",
  "lexicon": 1
}