# ai.newnal.illi.mydata.putStory

> Root or main admin saves the answer to one story question of the interests screen, or removes it with an empty text.

- Kind: procedure
- 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.putStory)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.mydata.putStory/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.mydata.putStory/analytics)

## Procedure (`ai.newnal.illi.mydata.putStory`)

Type: procedure · POST

### Input (application/json)

- `homeId` (string · tid, required)
- `questionKey` (string, required)
  - Constraints: maxLength: 100
- `slot` (integer, required): The parent slot, 1 or 2.
  - Constraints: minimum: 1, maximum: 2
- `text` (string, required)
  - Constraints: maxLength: 3000, maxGraphemes: 300

### Output (application/json)

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

### Errors

- `NotMember`: No description in schema.
- `NotAdmin`: No description in schema.
- `HomeNotFound`: No description in schema.
- `PdsUnavailable`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Root or main admin saves the answer to one story question of the interests screen, or removes it with an empty text.",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "NotAdmin"
        },
        {
          "name": "HomeNotFound"
        },
        {
          "name": "PdsUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "homeId": {
              "format": "tid",
              "type": "string"
            },
            "questionKey": {
              "maxLength": 100,
              "type": "string"
            },
            "slot": {
              "description": "The parent slot, 1 or 2.",
              "maximum": 2,
              "minimum": 1,
              "type": "integer"
            },
            "text": {
              "maxGraphemes": 300,
              "maxLength": 3000,
              "type": "string"
            }
          },
          "required": [
            "homeId",
            "slot",
            "questionKey",
            "text"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "stories": {
              "items": {
                "ref": "ai.newnal.illi.mydata.defs#story",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "stories"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.mydata.putStory",
  "lexicon": 1
}
```
