# net.atchan.moderation.emitEvent

> Label or take down one post through atchan's labeler. A thin layer over tools.ozone.moderation.emitEvents.

- Kind: procedure
- Authority: moderation.atchan.net
- Lexicon: 1
- Published by [atchan.net](https://lexicon.garden/identity/did:plc:vshgahazzq7qwvp2xc6ai27o), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:vshgahazzq7qwvp2xc6ai27o/net.atchan.moderation.emitEvent)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:vshgahazzq7qwvp2xc6ai27o/net.atchan.moderation.emitEvent/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:vshgahazzq7qwvp2xc6ai27o/net.atchan.moderation.emitEvent/analytics)

## Procedure (`net.atchan.moderation.emitEvent`)

Type: procedure · POST

### Input (application/json)

- `event` (union, required): The moderation event to emit.
  - One of (closed): `tools.ozone.moderation.defs#modEventLabel`, `tools.ozone.moderation.defs#modEventTakedown`
- `subject` (ref, required)
  - Reference: `com.atproto.repo.strongRef`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Label or take down one post through atchan's labeler. A thin layer over tools.ozone.moderation.emitEvents.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "event": {
              "closed": true,
              "description": "The moderation event to emit.",
              "refs": [
                "tools.ozone.moderation.defs#modEventLabel",
                "tools.ozone.moderation.defs#modEventTakedown"
              ],
              "type": "union"
            },
            "subject": {
              "ref": "com.atproto.repo.strongRef",
              "type": "ref"
            }
          },
          "required": [
            "event",
            "subject"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "net.atchan.moderation.emitEvent",
  "lexicon": 1
}
```
