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

# /codes/{codeId}

`PATCH /codes/{codeId}`

## Request

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

Update editable properties of a Source Code or Tag. This is a [JSON Patch](ref:json-patch) endpoint.

## Path parameters

- `codeId` integer, required

## Request body

- object
  - `RAW_BODY` object[]: An ordered list of operations to perform on the given Code.
    - `op` 'add' | 'remove' | 'replace' | 'copy' | 'move' | 'test', required: The operation to perform on the target document
    - `path` string, required: A JSON Pointer to the specific property in the document to operate on. Uses [RFC 6901](https://datatracker.ietf.org/doc/html/rfc6901/).
    - `value` string, json: Value of the same type as `path`. Required for `add`, `replace`, and `test` operations.
    - `from` string: A JSON Pointer to a specific property in the document. Required for `copy` and `move` operations.

## Response `204`

204

- object

## Other responses

- `400`: 400

## Changes

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

[Operation history](https://skmtc.dev/ngpvan/apis/van-crm/changes/codes/:codeId/patch.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)
