Add an event table
POST/projects/:project_id/event-tables
Adds a new event table to the workspace.
The mandatory fields table_name, table_schema, event_time_field and user_id_field
must be provided. Optional fields let you configure entity foreign keys, ignored
columns, the date partition column, the event name column and a display name prefix.
Fields that are not part of the request schema are rejected with a 400 response.
Adding a table does not trigger indexing. Call
POST /projects/{project_id}/event-tables/{event_table_id}/index afterwards to index it.
A workspace can hold at most 1,000 event tables. Adding one more returns a 409 response.
API key permission: Data.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 405
- 409
- 429
OK
The request is invalid.
The API key header is missing, or the API key is invalid, disabled or expired.
The API key doesn't have the permission this request needs, or the API key acts as an Org Admin and the change is still not allowed.
Not Found
The requested HTTP method is not allowed.
The request conflicts with the current state, for example a join request that was already decided.
Too many requests sent with the same API key. Up to 10 requests can be sent within 1 second, and 50 in a second that follows a second without requests. The member and join request requests allow 30 per second, or 50 per second for organisations with higher member limits.