# fyi.opensocial.decideTabOffer

> 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.decideTabOffer)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.decideTabOffer/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.decideTabOffer/examples)

## Definitions

### `fyi.opensocial.decideTabOffer`

**Type**: `procedure`

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.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `decision` | `string` | Yes |  |
| `group` | `string` (did) | Yes |  |
| `offer` | `string` | Yes |  |
| `to` | `string` | No | The slug of the site's channel it goes in, if not the one it was offered to. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `channel` | `string` | No | Where it went, when accepted. |
| `tab` | `string` | No | Its slug there. |

#### Errors

- **InvalidOffer**
- **NotFound**
- **Forbidden**

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