List tables with row counts for a bucket
GET /api/v1/{bucket}/tables
GET
/api/v1/{bucket}/tables
Returns all warehouse tables with the number of rows for the specified bucket. Requires authentication.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” bucket
required
string
Flock bucket ID. The caller must have access to this bucket.
Example
exampleResponses
Section titled “ Responses ”Table list with row counts
object
data
required
Array<object>
object
table
required
string
Example
person row_count
required
integer
Example
1250Example
{ "data": [ { "table": "person", "row_count": 1250 }, { "table": "organisation", "row_count": 340 }, { "table": "member", "row_count": 980 }, { "table": "payment", "row_count": 4200 } ]}Authentication required
object
error
required
object
code
required
Machine-readable error code.
string
Example
unauthorized message
required
Human-readable error message.
string
Example
Authentication requiredExample
{ "error": { "code": "unauthorized", "message": "Authentication required" }}Access denied to bucket
object
error
required
object
code
required
Machine-readable error code.
string
Example
unauthorized message
required
Human-readable error message.
string
Example
Authentication requiredExample
{ "error": { "code": "forbidden", "message": "Access denied to bucket 'example'" }}