Set absolute stats values for a repository. Used for migration/admin purposes to set specific pull/push counts.
Input
Encoding
application/jsonlastPull
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: 0pushCount
integer
Optional
Absolute push count to set
minimum: 0repository
string
Required
Repository name
maxLength: 256 bytesOutput
Encoding
application/jsonsuccess
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.
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."
}