# ai.newnal.illi.mydata.listRecords

> The records of one My Data collection of a parent, with their provenance. Same visibility as getParentData.

- Kind: query
- Authority: mydata.illi.newnal.ai
- Lexicon: 1
- Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.mydata.listRecords)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.mydata.listRecords/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.mydata.listRecords/analytics)

## Query (`ai.newnal.illi.mydata.listRecords`)

Type: query · GET

### Parameters (query string)

- `collection` (string, required): A My Data collection ILLI writes for a parent (dev-spec 21 §8.1).
  - Constraints: knownValues: ai.newnal.mydata.healthFunctionalAbilities | ai.newnal.mydata.healthMedicalEvents | ai.newnal.mydata.healthAllergies | ai.newnal.mydata.healthMedications | ai.newnal.mydata.healthHealthStatus | ai.newnal.mydata.interestsAndTastesTravel | ai.newnal.mydata.interestsAndTastesHobbies | ai.newnal.mydata.interestsAndTastesFood | ai.newnal.mydata.interestsAndTastesGeneral | ai.newnal.mydata.interestsAndTastesMedia | ai.newnal.mydata.interestsAndTastesNews | ai.newnal.mydata.interestsAndTastesFavoriteWorks | ai.newnal.mydata.interestsAndTastesFavoriteCreators | ai.newnal.mydata.capabilitiesSkillsAndKnowledge | ai.newnal.mydata.valuesAndGoalsGoals | ai.newnal.mydata.profileScheduleActivities | ai.newnal.mydata.lifestyleHabits | ai.newnal.mydata.profileIdentity | ai.newnal.mydata.profileBirth | ai.newnal.mydata.profileRepresentation
- `homeId` (string · tid, required)
- `slot` (integer, required): The parent slot, 1 or 2.
  - Constraints: minimum: 1, maximum: 2

### Output (application/json)

- `records` (array, required)
  - `items` (ref)
    - Reference: `ai.newnal.illi.mydata.defs#recordView`

### Errors

- `NotMember`: No description in schema.
- `HomeNotFound`: No description in schema.
- `ParentNotLinked`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The records of one My Data collection of a parent, with their provenance. Same visibility as getParentData.",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "HomeNotFound"
        },
        {
          "name": "ParentNotLinked"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "records": {
              "items": {
                "ref": "ai.newnal.illi.mydata.defs#recordView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "records"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "collection": {
            "description": "A My Data collection ILLI writes for a parent (dev-spec 21 §8.1).",
            "knownValues": [
              "ai.newnal.mydata.healthFunctionalAbilities",
              "ai.newnal.mydata.healthMedicalEvents",
              "ai.newnal.mydata.healthAllergies",
              "ai.newnal.mydata.healthMedications",
              "ai.newnal.mydata.healthHealthStatus",
              "ai.newnal.mydata.interestsAndTastesTravel",
              "ai.newnal.mydata.interestsAndTastesHobbies",
              "ai.newnal.mydata.interestsAndTastesFood",
              "ai.newnal.mydata.interestsAndTastesGeneral",
              "ai.newnal.mydata.interestsAndTastesMedia",
              "ai.newnal.mydata.interestsAndTastesNews",
              "ai.newnal.mydata.interestsAndTastesFavoriteWorks",
              "ai.newnal.mydata.interestsAndTastesFavoriteCreators",
              "ai.newnal.mydata.capabilitiesSkillsAndKnowledge",
              "ai.newnal.mydata.valuesAndGoalsGoals",
              "ai.newnal.mydata.profileScheduleActivities",
              "ai.newnal.mydata.lifestyleHabits",
              "ai.newnal.mydata.profileIdentity",
              "ai.newnal.mydata.profileBirth",
              "ai.newnal.mydata.profileRepresentation"
            ],
            "type": "string"
          },
          "homeId": {
            "format": "tid",
            "type": "string"
          },
          "slot": {
            "description": "The parent slot, 1 or 2.",
            "maximum": 2,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "homeId",
          "slot",
          "collection"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "ai.newnal.illi.mydata.listRecords",
  "lexicon": 1
}
```
