---
title: "{{baseUrl}}/persons/:personId/chart/encounters/:encounterId/allergies/:allergyId"
method: PUT
path: "/persons/{personId}/chart/encounters/{encounterId}/allergies/{allergyId}"
tags: ["Allergies and Intolerances"]
---

# {{baseUrl}}/persons/:personId/chart/encounters/:encounterId/allergies/:allergyId

`PUT /persons/{personId}/chart/encounters/{encounterId}/allergies/{allergyId}`

## Request

- Base URL: `https://nativeapi.nextgen.com/nge/prod/nge-api/api`
- URL: `https://nativeapi.nextgen.com/nge/prod/nge-api/api/persons/{personId}/chart/encounters/{encounterId}/allergies/{allergyId}`
- Auth: none declared. Required headers: `Accept`
- TypeScript: <https://skmtc.dev/nextgen/apis/enterprise-api-uscdi-routes/docs/persons/:personId/chart/encounters/:encounterId/allergies/:allergyId/put.ts> (a function with typed inputs; its response is checked against the schema)

Update a patient allergy

## Path parameters

- `personId` string, required
- `encounterId` string, required
- `allergyId` string, required

## Headers

- `Content-Type` 'application/json'
- `Accept` string, required

## Request body

- 7B7BbaseUrl7D7D1persons13ApersonId1chart1encounters13AencounterId1allergies13AallergyIdRequest (unresolved $ref)

## Response `200`

OK

- object

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/nextgen/apis/enterprise-api-uscdi-routes.md) - [All operations](https://skmtc.dev/nextgen/apis/enterprise-api-uscdi-routes/llms.txt) - [OpenAPI document](https://skmtc.dev/nextgen/apis/enterprise-api-uscdi-routes/revisions/191e69116448?raw)
