Import data from csv or json to Builder data model

Hi @ducanh,

With the Write API, you can POST , PATCH , PUT , and DELETE Builder content. You can use the Write API for use cases such as writing programmatically from your own internal application, or as part of a code release and build process.

You can certainly create a custom script to read from CSV file and use write API to upload data to the builder data model.

Sample script

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "Bearer bpk-private-key");

var raw = JSON.stringify({
  "ownerId": "c782aff3c66f48acb425981b997feb10",
  "@version": 3,
  "name": "test-out-json",
  "modelId": "f546a1c3030946009bef3e0433ce3901",
  "published": "draft",
  "query": [
      "@type": "",
      "property": "urlPath",
      "operator": "is",
      "value": "/test-out-json"
  "data": {
    "someProperty": "hello"

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'

fetch("", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));