# fyi.opensocial.putPeopleChannel

> Make a channel for chosen people, or change one you're in: its name, who it's for, its tabs and their files. Anyone in it may; the people must be the group's members, and leaving yourself out is leaving it. Each tab keeps what it makes in a space of its own, for the same people.

- Kind: procedure
- Authority: opensocial.fyi
- Lexicon: 1
- Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.putPeopleChannel)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.putPeopleChannel/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.putPeopleChannel/analytics)

## Procedure (`fyi.opensocial.putPeopleChannel`)

Type: procedure · POST

### Input (application/json)

- `channel` (string · at-uri): The channel to change, by its space; none to make one.
- `files` (array): Its tabs' files: each one it has already, or one you uploaded with uploadSiteFile.
  - Constraints: maxLength: 100
  - `items` (ref)
    - Reference: `fyi.opensocial.defs#file`
- `group` (string · did, required)
- `name` (string, required)
  - Constraints: maxLength: 640, maxGraphemes: 64
- `people` (array, required)
  - Constraints: maxLength: 100
  - `items` (string · did)
- `slug` (string): Its address, beginning with ~: none to keep the one it has, or for a new one, one from its name.
  - Constraints: maxLength: 64
- `tabs` (array, required)
  - Constraints: maxLength: 30
  - `items` (ref)
    - Reference: `fyi.opensocial.site#tab`

### Output (application/json)

- `channel` (string · at-uri, required)
- `slug` (string, required)

### Errors

- `InvalidChannel`: No description in schema.
- `NotFound`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Make a channel for chosen people, or change one you're in: its name, who it's for, its tabs and their files. Anyone in it may; the people must be the group's members, and leaving yourself out is leaving it. Each tab keeps what it makes in a space of its own, for the same people.",
      "errors": [
        {
          "name": "InvalidChannel"
        },
        {
          "name": "NotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "channel": {
              "description": "The channel to change, by its space; none to make one.",
              "format": "at-uri",
              "type": "string"
            },
            "files": {
              "description": "Its tabs' files: each one it has already, or one you uploaded with uploadSiteFile.",
              "items": {
                "ref": "fyi.opensocial.defs#file",
                "type": "ref"
              },
              "maxLength": 100,
              "type": "array"
            },
            "group": {
              "format": "did",
              "type": "string"
            },
            "name": {
              "maxGraphemes": 64,
              "maxLength": 640,
              "type": "string"
            },
            "people": {
              "items": {
                "format": "did",
                "type": "string"
              },
              "maxLength": 100,
              "type": "array"
            },
            "slug": {
              "description": "Its address, beginning with ~: none to keep the one it has, or for a new one, one from its name.",
              "maxLength": 64,
              "type": "string"
            },
            "tabs": {
              "items": {
                "ref": "fyi.opensocial.site#tab",
                "type": "ref"
              },
              "maxLength": 30,
              "type": "array"
            }
          },
          "required": [
            "group",
            "name",
            "people",
            "tabs"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "channel": {
              "format": "at-uri",
              "type": "string"
            },
            "slug": {
              "type": "string"
            }
          },
          "required": [
            "channel",
            "slug"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.putPeopleChannel",
  "lexicon": 1
}
```
