{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Replace posts and assign them new order ranks in one feed.",
      "errors": [
        {
          "description": "Returned when service authentication is required and the caller is not authenticated.",
          "name": "AuthenticationRequired"
        },
        {
          "description": "Returned when the authenticated caller is not in the admin allowlist.",
          "name": "Forbidden"
        },
        {
          "description": "Returned when request structure, placement, or post input is invalid.",
          "name": "BadRequest"
        },
        {
          "description": "Returned when the target feed URI is not registered.",
          "name": "UnknownFeed"
        },
        {
          "description": "Returned when posts cannot be stored.",
          "name": "InternalServerError"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "feed": {
              "format": "at-uri",
              "type": "string"
            },
            "placement": {
              "description": "Placement for the submitted post URIs. Defaults to append.",
              "ref": "net.nusno.gyoka.feed.defs#placement",
              "type": "ref"
            },
            "posts": {
              "items": {
                "ref": "net.nusno.gyoka.feed.defs#postInput",
                "type": "ref"
              },
              "maxLength": 1000,
              "minLength": 1,
              "type": "array"
            }
          },
          "required": [
            "feed",
            "posts"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "feed": {
              "format": "at-uri",
              "type": "string"
            },
            "orderRevision": {
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "feed",
            "orderRevision"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "net.nusno.gyoka.feed.putPosts",
  "lexicon": 1
}
