ByteChef LogoByteChef
OpenapiRows

Import rows from CSV

Insert rows from CSV. The header names existing columns; an optional `external_id` column sets each row's external id. Empty fields are null.

POST
/workspaces/{workspaceId}/data-tables/{name}/rows/import

Path Parameters

workspaceId*integer

The id of a workspace.

Formatint64
name*string

The table name.

Header Parameters

X-Environment?string

The environment whose physical table is addressed. PRODUCTION when omitted.

Value in

  • "DEVELOPMENT"
  • "STAGING"
  • "PRODUCTION"

Request Body

text/csv

TypeScript Definitions

Use the request body type in TypeScript.

body*string

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/workspaces/0/data-tables/string/rows/import" \  -H "Content-Type: text/csv" \  -d 'string'
{  "importedCount": 0}

How is this guide?