# fyi.opensocial.putPeopleChannel

> Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.putPeopleChannel)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.putPeopleChannel/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.putPeopleChannel/examples)

## Definitions

### `fyi.opensocial.putPeopleChannel`

**Type**: `procedure`

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.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `channel` | `string` (at-uri) | No | The channel to change, by its space; none to make one. |
| `files` | `array` | No | Its tabs' files: each one it has already, or one you uploaded with uploadSiteFile. |
| `group` | `string` (did) | Yes |  |
| `name` | `string` | Yes |  |
| `people` | `array` | Yes |  |
| `tabs` | `array` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `channel` | `string` (at-uri) | Yes |  |
| `slug` | `string` | Yes |  |

#### Errors

- **InvalidChannel**
- **NotFound**

## Raw 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"
            },
            "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
}
```
