Replace one instance's use counts with the ones given. Authenticated with a service token of any of the instance's members (aud: the marketplace's DID, lxm: this method); the marketplace keeps the counts under the instance id and never the member.
Input
application/jsoninstance
string
Required
An opaque id the instance draws once from at least 16 random bytes and keeps: letters, digits, dash and underscore. A report replaces the previous one under the same id.
maxLength: 64 bytesminLength: 16 bytesuses
array
Required
No description available.
maxLength: 1000 itemsOutput
application/jsonaccepted
integer
Required
How many entries name a slug the marketplace indexed; the others are dropped.
Errors
AuthenticationRequired
The call carries no service token. InvalidToken
The token is expired, not signed by the key its issuer's DID document names, or not addressed to the marketplace and this method. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Replace one instance's use counts with the ones given. Authenticated with a service token of any of the instance's members (aud: the marketplace's DID, lxm: this method); the marketplace keeps the counts under the instance id and never the member.",
"errors": [
{
"description": "The call carries no service token.",
"name": "AuthenticationRequired"
},
{
"description": "The token is expired, not signed by the key its issuer's DID document names, or not addressed to the marketplace and this method.",
"name": "InvalidToken"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"instance": {
"description": "An opaque id the instance draws once from at least 16 random bytes and keeps: letters, digits, dash and underscore. A report replaces the previous one under the same id.",
"maxLength": 64,
"minLength": 16,
"type": "string"
},
"uses": {
"items": {
"ref": "#use",
"type": "ref"
},
"maxLength": 1000,
"type": "array"
}
},
"required": [
"instance",
"uses"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"accepted": {
"description": "How many entries name a slug the marketplace indexed; the others are dropped.",
"minimum": 0,
"type": "integer"
}
},
"required": [
"accepted"
],
"type": "object"
}
},
"type": "procedure"
}