net.atpix.gallery.createAlbum

Create an album. When visibility is permissioned, provisions a HappyView space (type net.atpix.gallery.albumSpace) and links spaceUri.

Details · procedure
Kindprocedure
Authoritygallery.atpix.net
Indexed
cid bafyreicjedrnpvebp7qmflz3r753uam5j73vfdaa3hsznsr4vtm6iawqoi

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Create an album. When visibility is permissioned, provisions a HappyView space (type net.atpix.gallery.albumSpace) and links spaceUri.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "collectionRuleUris": {
              "items": {
                "format": "at-uri",
                "type": "string"
              },
              "maxLength": 20,
              "type": "array"
            },
            "description": {
              "maxLength": 5000,
              "type": "string"
            },
            "name": {
              "maxLength": 200,
              "type": "string"
            },
            "seedFromRules": {
              "default": false,
              "description": "When true, evaluate linked collectionRuleUris and create initial albumItem records.",
              "type": "boolean"
            },
            "spaceKey": {
              "maxLength": 64,
              "type": "string"
            },
            "visibility": {
              "ref": "net.atpix.gallery.defs#visibility",
              "type": "ref"
            }
          },
          "required": [
            "name",
            "visibility"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "spaceUri": {
              "maxLength": 512,
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "net.atpix.gallery.createAlbum",
  "lexicon": 1
}