post__bucket_{bucketId}_stats
TypeScript Client Library
public getBucketNodeStats = async (bucketId: string, data: GetBucketNodeStatsRequest): Promise<GetBucketNodeStatsResponse> => {
return this.makeRequest<GetBucketNodeStatsResponse>(`bucket/${bucketId}/stats`, 'POST', data);
};Code Samples
# You can also use wget
curl -X POST https://backend.flashback.tech/bucket/{bucketId}/stats \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'POST https://backend.flashback.tech/bucket/{bucketId}/stats HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Accept: application/jsonconst inputBody = '{
"day": "2024-01-15T00:00:00.000Z"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/bucket/{bucketId}/stats',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});Parameters
Name
In
Type
Required
Description
Parameters
Name
In
Type
Required
Description
Responses
Status
Meaning
Description
Schema
Response Schema
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Last updated
Was this helpful?