# pub.chive.sync.refreshRecord

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.sync.refreshRecord)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.sync.refreshRecord/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.sync.refreshRecord/examples)

## Definitions

### `pub.chive.sync.refreshRecord`

**Type**: `procedure`

Refresh a stale record from PDS

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT-URI of the record to refresh |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes |  |
| `error` | `string` | No | Error message if refresh failed |
| `newCid` | `string` (cid) | No | New CID after refresh |
| `refreshed` | `boolean` | Yes | Whether refresh succeeded |

#### Errors

- **NotFound**
- **AuthenticationRequired**

## Raw Schema

```json
{
  "id": "pub.chive.sync.refreshRecord",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "uri"
          ],
          "properties": {
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "AT-URI of the record to refresh"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "AuthenticationRequired"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "refreshed"
          ],
          "properties": {
            "uri": {
              "type": "string",
              "format": "at-uri"
            },
            "error": {
              "type": "string",
              "description": "Error message if refresh failed"
            },
            "newCid": {
              "type": "string",
              "format": "cid",
              "description": "New CID after refresh"
            },
            "refreshed": {
              "type": "boolean",
              "description": "Whether refresh succeeded"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Refresh a stale record from PDS"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
