---
updatedAt: 2026-08-07T16:25:02.000Z
agentTools:
  projectIndex: https://docs.elationhealth.com/llms.txt
---

# Partially Update Allergy

Update an existing allergy.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "AllergyStatus": {
        "enum": [
          "Active",
          "Inactive"
        ],
        "type": "string"
      },
      "PatchedPatientAllergy": {
        "properties": {
          "created_date": {
            "format": "date-time",
            "readOnly": true,
            "type": [
              "string",
              "null"
            ]
          },
          "deleted_date": {
            "format": "date-time",
            "readOnly": true,
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "readOnly": true,
            "type": "integer"
          },
          "medispandnid": {
            "readOnly": true,
            "type": "string"
          },
          "medispanid": {
            "readOnly": true,
            "type": "string"
          },
          "name": {
            "description": "The name of the allergy drug.",
            "type": "string"
          },
          "patient": {
            "description": "The id of the patient.",
            "format": "int64",
            "type": "integer"
          },
          "reaction": {
            "description": "The reaction to the drug.",
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "severity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PatientAllergySeverityEnum"
              }
            ],
            "description": "How severe the reaction is."
          },
          "start_date": {
            "description": "The date the allergy started.",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/AllergyStatus"
          }
        },
        "type": "object"
      },
      "PatientAllergy": {
        "properties": {
          "created_date": {
            "format": "date-time",
            "readOnly": true,
            "type": [
              "string",
              "null"
            ]
          },
          "deleted_date": {
            "format": "date-time",
            "readOnly": true,
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "readOnly": true,
            "type": "integer"
          },
          "medispandnid": {
            "readOnly": true,
            "type": "string"
          },
          "medispanid": {
            "readOnly": true,
            "type": "string"
          },
          "name": {
            "description": "The name of the allergy drug.",
            "type": "string"
          },
          "patient": {
            "description": "The id of the patient.",
            "format": "int64",
            "type": "integer"
          },
          "reaction": {
            "description": "The reaction to the drug.",
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "severity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PatientAllergySeverityEnum"
              }
            ],
            "description": "How severe the reaction is."
          },
          "start_date": {
            "description": "The date the allergy started.",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/AllergyStatus"
          }
        },
        "required": [
          "name",
          "patient"
        ],
        "type": "object"
      },
      "PatientAllergySeverityEnum": {
        "enum": [
          "mild",
          "moderate",
          "severe",
          "unknown"
        ],
        "type": "string"
      }
    },
    "securitySchemes": {
      "oauth2": {
        "flows": {
          "clientCredentials": {
            "scopes": {
              "act_as_user": "Impersonate a provider via X-On-Behalf-Of (combinable with apiv2 or system scopes)",
              "apiv2": "Full access to the API",
              "system/{resource_name}.read": "Read access to a specific resource",
              "system/{resource_name}.write": "Write access to a specific resource"
            },
            "tokenUrl": "/api/2.0/oauth2/token/"
          }
        },
        "type": "oauth2"
      }
    }
  },
  "info": {
    "contact": {
      "name": "Elation Health",
      "url": "https://www.elationhealth.com/"
    },
    "description": "Elation Health API v2.0",
    "title": "Patient Profile API",
    "version": "2.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/2.0/allergies/{id}/": {
      "patch": {
        "description": "Update an existing allergy.",
        "operationId": "allergies_partial_update",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "int64",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchedPatientAllergy"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatientAllergy"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ],
        "summary": "Partially Update Allergy",
        "tags": [
          "Allergies"
        ],
        "x-el8-docs-category": "Patient Profile API",
        "x-el8-docs-versions": [
          "2.1",
          "2.0"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Sandbox Server",
      "url": "https://sandbox.elationemr.com"
    },
    {
      "description": "Production Server",
      "url": "https://api.app.elationemr.com"
    }
  ],
  "x-readme": {
    "proxy-enabled": true
  }
}
```