Count the bound project publication uploads.
const url = 'https://example.com/api/artifacts/publications/counted';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/artifacts/publications/counted \ --header 'Authorization: Bearer <token>'Count the uploads stored against publications of the project bound to the presented project credential, plus the distinct files its sibling processes hold in flight.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”The journal slot this request speaks for, 0 to 7; a scope label between cooperating processes of one credential, never an authenticator
Responses
Section titled “Responses”Project publication counters
The bound project’s counted publication uploads.
object
Uploads stored against this project’s publications.
Distinct files OTHER journal slots of this credential have in flight right now: reserved receipts of a still-reserved publication whose file slot has not gone back. The caller’s own slot is excluded, because its process already counts its own live reservations and retained attempts. Additive: a client that does not know the field reserves without it, and an older server never sends it.
Example generated
{ "counted": 1, "reserved": 1}