---
schema_version: "1"
id: 7e21bb888837dcdb7077f864b750d76ee7af6e50d0c3e8e9c7f975cff8158af6
title: HttpPatch Annotation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/apex_classes_annotation_http_patch.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_http_patch.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8c6492e051ed3e679aa3e766c82e575347461e23530f255e57e8b11f4accf36b
---
# HttpPatch Annotation

The @HttpPatch annotation is used at the method level and enables you to expose an Apex method as a REST resource. This method is called when an HTTP PATCH request is sent, and updates the specified resource.

To use this annotation, your Apex method must be defined as global static.