# fyi.opensocial.undoSitePublish

> Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.undoSitePublish)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.undoSitePublish/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.undoSitePublish/examples)

## Definitions

### `fyi.opensocial.undoSitePublish`

**Type**: `procedure`

Take back what the site's last publish changed: whatever is still as it left it goes back; anything changed since stays.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `group` | `string` (did) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `kept` | `array` | Yes | What was changed again since, and so left as it is. |
| `undone` | `integer` | Yes |  |

#### Errors

- **NotFound**
- **Forbidden**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Take back what the site's last publish changed: whatever is still as it left it goes back; anything changed since stays.",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "Forbidden"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "group": {
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "group"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "kept": {
              "description": "What was changed again since, and so left as it is.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "undone": {
              "type": "integer"
            }
          },
          "required": [
            "undone",
            "kept"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.undoSitePublish",
  "lexicon": 1
}
```
