---
title: "/codes"
method: PUT
path: "/codes"
---

# /codes

`PUT /codes`

## Request

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

Use this endpoint to update the editable properties of a set of existing Codes. For example, you could use this to change the names of Codes, to change several Codes’ parents, or to add or remove the Entities the Codes support.

When constructing your request, note that all editable properties must be specified otherwise it is assumed they should be removed or set to null. For example, if the `supportedEntities` property is set to `null` or `[]` (an empty array) in JSON specifying a Code, all supported Entities are removed from that Code.

## Request body

- object
  - `codes` object[]
    - `parentCodeId` integer
    - `name` string
    - `description` string
    - `supportedEntities` object[]
      - `name` string
      - `isSearchable` boolean
      - `isApplicable` boolean
    - `codeType` string

## Response `200`

200

- 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/put.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)
