---
title: "BulkJSONUpload"
method: POST
path: "/collect/bulk/{streamname}"
tags: ["DataUpload"]
---

# BulkJSONUpload

`POST /collect/bulk/{streamname}`

## Request

- Base URL: `https://api.lytics.io`
- URL: `https://api.lytics.io/collect/bulk/{streamname}`
- Auth: API key in header `Authorization`

JSON formatting info.

This JSON is ok:

```json
{"order_ids":[1,2,3]}
```

This is not valid because it has objects nested inside arrays:

```json
{"orders":[{"id":1,"price":22},{"id":2,"price":23}]}
```

## Path parameters

- `streamname` string, required

## Query parameters

- `account_id` string
- `access_token` string
- `dryrun` boolean
- `timestamp_field` string
- `filename` string

## Response `200`

OK

- BulkJSONUploadModel
  - `status` number
  - `message` string
  - `data` object
    - `message_count` number
    - `rejected_count` number
    - `content-type` string
    - `droperrors` boolean
    - `dryrun` boolean
    - `timestamp_field` string
    - `filename` string

---

[API](https://skmtc.dev/lytics/apis/v1-lytics-api.md) - [All operations](https://skmtc.dev/lytics/apis/v1-lytics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lytics/apis/v1-lytics-api/revisions/339fd1d88486?raw)
