---
title: "/codes/{codeId}"
method: PUT
path: "/codes/{codeId}"
---

# /codes/{codeId}

`PUT /codes/{codeId}`

## Request

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

Use this endpoint to update the editable properties of an existing Code. For example, you could use this to change the name of a Code, to change a Code’s parent, or to add or remove the Entities this Code supports.

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 the request, all supported Entities are removed from the Code.

Not all properties can be updated using this endpoint. If you need to update all metadata or are unable to populate all existing properties as described above, consider using the [PATCH](ref:patch-codes-codeid) endpoint.

## Path parameters

- `codeId` integer, required

## Request body

- object
  - `codeId` integer, required
  - `parentCodeId` integer
  - `name` string, required
  - `codeType` 'SourceCode' | 'Tag': This property cannot change
  - `supportedEntities` object
    - `name` string
    - `isSearchable` boolean
    - `isApplicable` boolean

## Response `204`

204

## 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/:codeId/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)
