# fyi.opensocial.decideTabOffer

> Decide on a tab offered to the site, for whoever may change it: accept puts it in one of the site's channels as it is, with everything kept in it, now read by whoever that channel is for; decline leaves it where it was.

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

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

Type: procedure · POST

### Input (application/json)

- `decision` (string, required)
  - Constraints: knownValues: accept | decline
- `group` (string · did, required)
- `offer` (string, required)
- `to` (string): The slug of the site's channel it goes in, if not the one it was offered to.

### Output (application/json)

- `channel` (string): Where it went, when accepted.
- `tab` (string): Its slug there.

### Errors

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

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Decide on a tab offered to the site, for whoever may change it: accept puts it in one of the site's channels as it is, with everything kept in it, now read by whoever that channel is for; decline leaves it where it was.",
      "errors": [
        {
          "name": "InvalidOffer"
        },
        {
          "name": "NotFound"
        },
        {
          "name": "Forbidden"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "decision": {
              "knownValues": [
                "accept",
                "decline"
              ],
              "type": "string"
            },
            "group": {
              "format": "did",
              "type": "string"
            },
            "offer": {
              "type": "string"
            },
            "to": {
              "description": "The slug of the site's channel it goes in, if not the one it was offered to.",
              "type": "string"
            }
          },
          "required": [
            "group",
            "offer",
            "decision"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "channel": {
              "description": "Where it went, when accepted.",
              "type": "string"
            },
            "tab": {
              "description": "Its slug there.",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.decideTabOffer",
  "lexicon": 1
}
```
