---
title: "/people/{personIdType}:{personId}/codes"
method: POST
path: "/people/{personIdType}:{personId}/codes"
---

# /people/{personIdType}:{personId}/codes

`POST /people/{personIdType}:{personId}/codes`

## Request

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

This endpoint is the same as [POST /people/{vanId}/codes](ref:people#peoplevanidcodes) but uses external IDs rather than VANIDs.

## Path parameters

- `personIdType` string, required
- `personId` string, required

## Request body

- object
  - `codeId` string: Required; Unique identifier for an existing [Code](ref:codes) that is applicable to a Person.

## 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/people/:personIdType::personId/codes/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)
