Tables
Create Table
Create a new Dune table with the specified name and namespace.
POST
The resulting table will be empty, and can be inserted into with the /insert endpoint.
- If a table already exists with the same name, the request will fail.
- Column names in the table can’t start with a special character or a digit.
- Each successful table creation consumes 10 credits.
- To delete a table, you can go to
user settings (dune.com) -> data -> delete
or use the /delete endpoint.
Schema
You need to define the schema of your data by providing schema
array of columns in the request. Each column has three parameters:
name: the name of the field
type: the data type of the field
Dune supports ISO 8601 timestamp format
nullable: if the column is nullable (true/false, true by default)
Authorizations
The API key of your team or user.
Body
application/json
Create a new Dune Table for uploads
The body is of type object
.
Response
200
application/json
The Dune table `namespace.table_name` already existed with the same data as the request.
The response is of type object
.