# app.didpic.notification.recordEvents

> Published by [lexicons.didpic.app](https://lexicon.garden/identity/did:plc:an2jtp4jgkkbtmwfzhpbxawd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.notification.recordEvents)
- [Documentation](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.notification.recordEvents/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.notification.recordEvents/examples)

## Definitions

### `app.didpic.notification.recordEvents`

**Type**: `procedure`

Submit a batch of analytics events from the mobile app.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `events` | `array` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `inserted` | `integer` | Yes |  |

## Raw Schema

```json
{
  "id": "app.didpic.notification.recordEvents",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "events"
          ],
          "properties": {
            "events": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "event"
                ],
                "properties": {
                  "ts": {
                    "type": "string",
                    "format": "datetime"
                  },
                  "did": {
                    "type": "string",
                    "format": "did"
                  },
                  "event": {
                    "type": "string"
                  },
                  "props": {
                    "type": "unknown"
                  },
                  "platform": {
                    "type": "string"
                  },
                  "appVersion": {
                    "type": "string"
                  }
                }
              },
              "maxLength": 20
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "inserted"
          ],
          "properties": {
            "inserted": {
              "type": "integer"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Submit a batch of analytics events from the mobile app."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
