# app.studynext.managedGroup

> An approved paid group (tutoring center, corporate welfare program, etc) registry entry, written into the shared moderation account's (studynext.app) repo via the admin dashboard. Clients cannot write this collection directly. rkey is either a TID or a deterministic hash of a caller-supplied idempotency key, so it is left unconstrained here.

- Kind: record
- Record key: any
- Authority: studynext.app
- Lexicon: 1
- Published by [studynext.app](https://lexicon.garden/identity/did:plc:nstib2qjcu3tyun7cxz4dxcm), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.managedGroup)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.managedGroup/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.managedGroup/analytics)

## Record (`app.studynext.managedGroup`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `groupType` (string, required)
  - Constraints: knownValues: managed
- `name` (string, required)
  - Constraints: maxLength: 200
- `ownerDid` (string · did, required)
- `parentGroupUri` (string · at-uri): AT-URI of a parent managedGroup, for sub-groups. Accepted by createManagedGroupEntry but not currently read back by any code — a sub-group feature that was never finished.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An approved paid group (tutoring center, corporate welfare program, etc) registry entry, written into the shared moderation account's (studynext.app) repo via the admin dashboard. Clients cannot write this collection directly. rkey is either a TID or a deterministic hash of a caller-supplied idempotency key, so it is left unconstrained here.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "groupType": {
            "knownValues": [
              "managed"
            ],
            "type": "string"
          },
          "name": {
            "maxLength": 200,
            "type": "string"
          },
          "ownerDid": {
            "format": "did",
            "type": "string"
          },
          "parentGroupUri": {
            "description": "AT-URI of a parent managedGroup, for sub-groups. Accepted by createManagedGroupEntry but not currently read back by any code — a sub-group feature that was never finished.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "groupType",
          "name",
          "ownerDid",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.managedGroup",
  "lexicon": 1
}
```
