# fyi.opensocial.previewSiteDraft

> Every public page of the group's site as the caller's draft would publish it.

- Kind: query
- Authority: opensocial.fyi
- Lexicon: 1
- Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.previewSiteDraft)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.previewSiteDraft/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.previewSiteDraft/analytics)

## Query (`fyi.opensocial.previewSiteDraft`)

Type: query · GET

### Parameters (query string)

- `group` (string · did, required)

### Output (application/json)

- `pages` (array, required)
  - `items` (ref)
    - Reference: `#page`

### Errors

- `NotFound`: No description in schema.
- `Forbidden`: No description in schema.
- `MethodFailed`: No description in schema.

## #page (`fyi.opensocial.previewSiteDraft#page`)

Type: object

### Properties

- `channel` (string, required)
- `html` (string, required)
- `path` (string, required)
- `status` (integer, required)
- `tab` (string, required)
- `warning` (string)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Every public page of the group's site as the caller's draft would publish it.",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "Forbidden"
        },
        {
          "name": "MethodFailed"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "pages": {
              "items": {
                "ref": "#page",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "pages"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "group": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "group"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "page": {
      "properties": {
        "channel": {
          "type": "string"
        },
        "html": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "status": {
          "type": "integer"
        },
        "tab": {
          "type": "string"
        },
        "warning": {
          "type": "string"
        }
      },
      "required": [
        "channel",
        "tab",
        "path",
        "status",
        "html"
      ],
      "type": "object"
    }
  },
  "id": "fyi.opensocial.previewSiteDraft",
  "lexicon": 1
}
```
