# ai.newnal.illi.mydata.setSharing

> A root or main admin sets which categories general managers of the home may read. Defaults: every category.

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

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

Type: procedure · POST

### Input (application/json)

- `generalManagers` (ref, required)
  - Reference: `ai.newnal.illi.mydata.defs#sharingCategories`
- `homeId` (string · tid, required)

### Output (application/json)

- `sharing` (ref, required)
  - Reference: `ai.newnal.illi.mydata.defs#sharingView`

### 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": "A root or main admin sets which categories general managers of the home may read. Defaults: every category.",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "NotAdmin"
        },
        {
          "name": "HomeNotFound"
        },
        {
          "name": "PdsUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "generalManagers": {
              "ref": "ai.newnal.illi.mydata.defs#sharingCategories",
              "type": "ref"
            },
            "homeId": {
              "format": "tid",
              "type": "string"
            }
          },
          "required": [
            "homeId",
            "generalManagers"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "sharing": {
              "ref": "ai.newnal.illi.mydata.defs#sharingView",
              "type": "ref"
            }
          },
          "required": [
            "sharing"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.mydata.setSharing",
  "lexicon": 1
}
```
