io.atcr.hold.setStats

atcr.io

Documentation

Set absolute stats values for a repository. Used for migration/admin purposes to set specific pull/push counts.

main procedure

Set absolute stats values for a repository. Used for migration/admin purposes to set specific pull/push counts.

Input

Encodingapplication/json
lastPull stringdatetime Optional

RFC3339 timestamp of last pull

lastPush stringdatetime Optional

RFC3339 timestamp of last push

ownerDid stringdid Required

DID of the repository owner

pullCount integer Optional

Absolute pull count to set

minimum: 0
pushCount integer Optional

Absolute push count to set

minimum: 0
repository string Required

Repository name

maxLength: 256 bytes

Output

Encodingapplication/json
success boolean Required

Whether the stats were successfully updated

Errors

InvalidOwner
InvalidRepository
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "type": "procedure",
  "input": {
    "schema": {
      "type": "object",
      "required": [
        "ownerDid",
        "repository"
      ],
      "properties": {
        "lastPull": {
          "type": "string",
          "format": "datetime",
          "description": "RFC3339 timestamp of last pull"
        },
        "lastPush": {
          "type": "string",
          "format": "datetime",
          "description": "RFC3339 timestamp of last push"
        },
        "ownerDid": {
          "type": "string",
          "format": "did",
          "description": "DID of the repository owner"
        },
        "pullCount": {
          "type": "integer",
          "minimum": 0,
          "description": "Absolute pull count to set"
        },
        "pushCount": {
          "type": "integer",
          "minimum": 0,
          "description": "Absolute push count to set"
        },
        "repository": {
          "type": "string",
          "maxLength": 256,
          "description": "Repository name"
        }
      }
    },
    "encoding": "application/json"
  },
  "errors": [
    {
      "name": "InvalidOwner"
    },
    {
      "name": "InvalidRepository"
    }
  ],
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "success"
      ],
      "properties": {
        "success": {
          "type": "boolean",
          "description": "Whether the stats were successfully updated"
        }
      }
    },
    "encoding": "application/json"
  },
  "description": "Set absolute stats values for a repository. Used for migration/admin purposes to set specific pull/push counts."
}

Lexicon Garden

@