Create tables

Create up to 10 tables.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
path Parameters
username
required
string (Username)

The name of the username (a.k.a. database) to be managed from the API

Request Body schema: application/json
required

List of tables to create

required
Array of objects (Items) [ 1 .. 10 ] items
Responses
200

List of created tables

400

Response of a failed request

422

Validation Error

post/postgresgateway/tables/{username}
Request samples
from cognite.client.data_classes.data_modeling import ViewId
from cognite.client.data_classes.postgres_gateway import ViewTableWrite
table = ViewTableWrite(tablename="myCustom", options=ViewId(space="mySpace", external_id="myExternalId", version="v1"))
res = client.postgres_gateway.tables.create("myUserName",table)
Response samples
application/json
{
  • "items": [
    • {
      }
    ]
}