Skip to main content
PUT
/
v1
/
json
/
{DATASET_ID}
/
data
curl --request PUT \
  --url https://api.domo.com/v1/json/{DATASET_ID}/data \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "Friend": "John",
    "Attending": "false"
  },
  {
    "Friend": "Jane",
    "Attending": "true"
  }
]
'
"Invalid data provided during upload. Invalid schema. Expected: {columns=[{type='STRING', name='name', metadata=null}, {type='STRING', name='role', metadata=null}, {type='STRING', name='quote', metadata=null}, {type='STRING', name='side', metadata=null}]}"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

DATASET_ID
string
required

The ID of the DataSet to import the data into

Query Parameters

updateMethod
enum<string>
default:REPLACE

Specifies how the data import should update the DataSet.

Defaults to REPLACE if not specified.

If set to APPEND, the schema must match the existing schema.

Case-sensitive; must be uppercase. Falls back to REPLACE if given an invalid value.

Available options:
REPLACE,
APPEND

Body

application/json

An array of JSON objects which will be converted to CSV and stored as data.

If you want to pass CSV directly, use the DataSet API.

If appending, the schema must match the existing schema. To omit a field, specify the key but use an empty string or null for the value (see Example 2).

If replacing, some objects can be missing properties that others have, resulting in empty fields (see Example 3).

If your objects contain array values, they will appear as "List" in the DataSet. Consider converting them to properties or, alternatively, you can leverage one of Domo's many JSON connectors to more flexibly deal with arrays.

Response

Success! Returns an empty response body.