# fyi.opensocial.updateTemplateListing

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

## Definitions

### `fyi.opensocial.updateTemplateListing`

**Type**: `procedure`

Ask for a template the group shared with everyone to be listed where people look for things to add, or not: its listing in the group's own repo says so. For whoever may publish for the group. Listing one asks that every version is scanned with nothing found and that enough groups keep it; a host lists it only while they hold.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `group` | `string` (did) | Yes |  |
| `listed` | `boolean` | Yes |  |
| `template` | `string` (at-uri) | Yes | The template, its fyi.opensocial.template in the group's repo. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `listed` | `boolean` | Yes |  |

#### Errors

- **NotFound**
- **Forbidden**
- **NotYet**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Ask for a template the group shared with everyone to be listed where people look for things to add, or not: its listing in the group's own repo says so. For whoever may publish for the group. Listing one asks that every version is scanned with nothing found and that enough groups keep it; a host lists it only while they hold.",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "Forbidden"
        },
        {
          "name": "NotYet"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "group": {
              "format": "did",
              "type": "string"
            },
            "listed": {
              "type": "boolean"
            },
            "template": {
              "description": "The template, its fyi.opensocial.template in the group's repo.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "group",
            "template",
            "listed"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "listed": {
              "type": "boolean"
            }
          },
          "required": [
            "listed"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.updateTemplateListing",
  "lexicon": 1
}
```
