# fyi.opensocial.undoSitePublish

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

- Kind: procedure
- 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.undoSitePublish)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.undoSitePublish/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.undoSitePublish/analytics)

## Procedure (`fyi.opensocial.undoSitePublish`)

Type: procedure · POST

### Input (application/json)

- `group` (string · did, required)

### Output (application/json)

- `kept` (array, required): What was changed again since, and so left as it is.
  - `items` (string)
- `undone` (integer, required)

### Errors

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

## 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
}
```
