---
title: "Maximum 500 records can be bulk inserted at a time"
method: POST
path: "/v1/companies/insertbulk"
tags: ["Company"]
---

# Maximum 500 records can be bulk inserted at a time

`POST /v1/companies/insertbulk`

## Query parameters

- `returnFullData` boolean

## Request body

- unknown[]
  - unknown

## Response `201`

Created

- CompanyInsertBulkResponseWithData
  - `upsertedData` Company[], nullable — Returned only if "returnFullData" query parameter is set to true
    - `id` integer
    - `departmentId` integer
    - `name` string, required
    - `code` string, nullable
    - `email` string, nullable
    - `phone` string, nullable — Phone number of the company, with country code, without leading + (plus) sign
    - `web` string, nullable — Website domain of the company
    - `countryCode` string, nullable — ISO Alpha-2 country code, see <a href="https://www.iban.com/country-codes">https://www.iban.com/country-codes</a>
    - `state` string, nullable
    - `city` string, nullable
    - `town` string, nullable
    - `zip` string, nullable
    - `address` string, nullable
    - `createdUserId` integer
    - `createdDate` string, date-time, nullable
    - `updatedUserId` integer
    - `updatedDate` string, date-time, nullable
    - `customFields` string, nullable — A stringified JSON object mapping custom field names to values Example: {"My Text Custom Field":"Field Value","My Numeric Custom Field":2}
    - `photoUrl` string, nullable — Company logo URL
  - `inserted` integer
  - `updated` integer
  - `errors` InsertBulkError[], nullable
    - `row` integer — Starts from 0, the index of the element in the list that caused the error
    - `error` string, nullable — Error message

## Other responses

- `400` — Bad Request
- `409` — Conflict
- `503` — Service Unavailable

---

[API](https://skmtc.dev/infoset/apis/infoset-rest-api.md) · [All operations](https://skmtc.dev/infoset/apis/infoset-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infoset/infoset-rest-api/revisions/f5bc39a1ac15/schema)
