# fyi.opensocial.listTemplateLikes

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

## Definitions

### `fyi.opensocial.listTemplateLikes#likeView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `author` | `ref` → `fyi.opensocial.getTemplateListing#makerView` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `number` | `integer` | No | Which version that is. |
| `text` | `string` | No |  |
| `uri` | `string` (at-uri) | Yes |  |
| `version` | `ref` → `com.atproto.repo.strongRef` | Yes | The version it's about. |

### `fyi.opensocial.listTemplateLikes`

**Type**: `query`

Who likes a template shared with everyone, newest first, each about a version of it and with their line about it: as this host has seen them, leaving out any labelled hidden. For anyone.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `limit` | `integer` | No |  |
| `uri` | `string` (at-uri) | Yes | The template, its fyi.opensocial.template. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `likes` | `array` | Yes |  |

#### Errors

- **NotFound**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "likeView": {
      "properties": {
        "author": {
          "ref": "fyi.opensocial.getTemplateListing#makerView",
          "type": "ref"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "number": {
          "description": "Which version that is.",
          "minimum": 1,
          "type": "integer"
        },
        "text": {
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        },
        "version": {
          "description": "The version it's about.",
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "required": [
        "uri",
        "author",
        "version",
        "createdAt"
      ],
      "type": "object"
    },
    "main": {
      "description": "Who likes a template shared with everyone, newest first, each about a version of it and with their line about it: as this host has seen them, leaving out any labelled hidden. For anyone.",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "likes": {
              "items": {
                "ref": "#likeView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "likes"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "uri": {
            "description": "The template, its fyi.opensocial.template.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.listTemplateLikes",
  "lexicon": 1
}
```
