# fyi.opensocial.offerTab

> Offer a tab of a channel kept for chosen people you're in to the group's site, to one of its channels or wherever those who may change the site think best. While it waits they may read that tab, and nothing else in the channel, to decide.

- 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.offerTab)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.offerTab/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.offerTab/analytics)

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

Type: procedure · POST

### Input (application/json)

- `channel` (string · at-uri, required)
- `group` (string · did, required)
- `note` (string)
  - Constraints: maxGraphemes: 500
- `tab` (string, required): The tab's slug in that channel.
- `to` (string): The slug of the site's channel it would go in; absent, wherever they think best.

### Output (application/json)

- `offer` (string, required)

### Errors

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

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Offer a tab of a channel kept for chosen people you're in to the group's site, to one of its channels or wherever those who may change the site think best. While it waits they may read that tab, and nothing else in the channel, to decide.",
      "errors": [
        {
          "name": "InvalidOffer"
        },
        {
          "name": "NotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "channel": {
              "format": "at-uri",
              "type": "string"
            },
            "group": {
              "format": "did",
              "type": "string"
            },
            "note": {
              "maxGraphemes": 500,
              "type": "string"
            },
            "tab": {
              "description": "The tab's slug in that channel.",
              "type": "string"
            },
            "to": {
              "description": "The slug of the site's channel it would go in; absent, wherever they think best.",
              "type": "string"
            }
          },
          "required": [
            "group",
            "channel",
            "tab"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "offer": {
              "type": "string"
            }
          },
          "required": [
            "offer"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.offerTab",
  "lexicon": 1
}
```
