---
title: "/codes/batch"
method: POST
path: "/codes/batch"
---

# /codes/batch

`POST /codes/batch`

## Request

- Base URL: `https://api.securevan.com/v4`
- URL: `https://api.securevan.com/v4/codes/batch`
- Auth: HTTP basic

Use this endpoint to create a batch of new Codes in the current context.

## Request body

- object
  - `codes` object[]: Required; An array of zero or more Code objects for batch operations.
    - `parentCodeId` integer
    - `name` string
    - `description` string
    - `supportedEntities` object[]
      - `name` string
      - `isSearchable` boolean
      - `isApplicable` boolean
    - `codeType` string

## Response `201`

201

- object[]
  - `codeId` integer
  - `message` string

## Other responses

- `400`: 400
- `404`: 404

## Changes

- **2026-11-03** `4f2049fba5af`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ngpvan/apis/van-crm/changes/codes/batch/post.md)

---

[API](https://skmtc.dev/ngpvan/apis/van-crm.md) - [All operations](https://skmtc.dev/ngpvan/apis/van-crm/llms.txt) - [OpenAPI document](https://skmtc.dev/ngpvan/apis/van-crm/revisions/4f2049fba5af?raw)
