# fyi.opensocial.refreshRecords

> Read records of the caller's own again from their own server, proved (com.atproto.sync.getRecord), and keep them as they are now wherever the host keeps their collection: what a site just wrote or deleted for them shows at once, rather than when the network brings it. A record the host doesn't keep is left alone.

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

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

Type: procedure · POST

### Input (application/json)

- `uris` (array, required): Records in the caller's own repo.
  - Constraints: maxLength: 25
  - `items` (string · at-uri)

### Output (application/json)

- `records` (array, required)
  - `items` (ref)
    - Reference: `#recordView`

### Errors

- `NotYours`: No description in schema.
- `Unreachable`: No description in schema.

## #recordView (`fyi.opensocial.refreshRecords#recordView`)

Type: object

### Properties

- `cid` (string · cid): Its CID as it is now; left out once it's gone.
- `uri` (string · at-uri, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Read records of the caller's own again from their own server, proved (com.atproto.sync.getRecord), and keep them as they are now wherever the host keeps their collection: what a site just wrote or deleted for them shows at once, rather than when the network brings it. A record the host doesn't keep is left alone.",
      "errors": [
        {
          "name": "NotYours"
        },
        {
          "name": "Unreachable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "uris": {
              "description": "Records in the caller's own repo.",
              "items": {
                "format": "at-uri",
                "type": "string"
              },
              "maxLength": 25,
              "type": "array"
            }
          },
          "required": [
            "uris"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "records": {
              "items": {
                "ref": "#recordView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "records"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    },
    "recordView": {
      "properties": {
        "cid": {
          "description": "Its CID as it is now; left out once it's gone.",
          "format": "cid",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    }
  },
  "id": "fyi.opensocial.refreshRecords",
  "lexicon": 1
}
```
