# buzz.bookhive.putSyncProgress

> Push reading progress for a document. Mirrors KOSync PUT /syncs/progress semantics.

- Kind: procedure
- Authority: bookhive.buzz
- Lexicon: 1
- Published by [bookhive.buzz](https://lexicon.garden/identity/did:plc:enu2j5xjlqsjaylv3du4myh4), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.putSyncProgress)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.putSyncProgress/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.putSyncProgress/analytics)

## Procedure (`buzz.bookhive.putSyncProgress`)

Type: procedure · POST

### Input (application/json)

- `device` (string, required): Device name
- `device_id` (string, required): Device identifier
- `document` (string, required): Document identifier
- `metadata` (ref)
  - Reference: `#syncMetadata`
- `percentage` (string, required): Reading progress as a decimal string (0-1, e.g. '0.42')
- `progress` (string, required): Reading progress position (KOSync format)

### Output (application/json)

- `status` (string, required): Result status of the operation

## #syncMetadata (`buzz.bookhive.putSyncProgress#syncMetadata`)

Type: object

Optional metadata about the document being synced

### Properties

- `authors` (string): Authors of the document
- `filename` (string): Original filename of the document
- `title` (string): Title of the document

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Push reading progress for a document. Mirrors KOSync PUT /syncs/progress semantics.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "device": {
              "description": "Device name",
              "type": "string"
            },
            "device_id": {
              "description": "Device identifier",
              "type": "string"
            },
            "document": {
              "description": "Document identifier",
              "type": "string"
            },
            "metadata": {
              "ref": "#syncMetadata",
              "type": "ref"
            },
            "percentage": {
              "description": "Reading progress as a decimal string (0-1, e.g. '0.42')",
              "type": "string"
            },
            "progress": {
              "description": "Reading progress position (KOSync format)",
              "type": "string"
            }
          },
          "required": [
            "document",
            "progress",
            "percentage",
            "device",
            "device_id"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "status": {
              "description": "Result status of the operation",
              "type": "string"
            }
          },
          "required": [
            "status"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    },
    "syncMetadata": {
      "description": "Optional metadata about the document being synced",
      "properties": {
        "authors": {
          "description": "Authors of the document",
          "type": "string"
        },
        "filename": {
          "description": "Original filename of the document",
          "type": "string"
        },
        "title": {
          "description": "Title of the document",
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "id": "buzz.bookhive.putSyncProgress",
  "lexicon": 1
}
```
