---
schema_version: "1"
id: 71f427a1ccc9f1bf415f965d9995698b60de30c777d2c440e5bb7d34d37bb224
title: HttpPut Annotation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/apex_classes_annotation_http_put.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_http_put.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 265d2f73466c2838e6cabe0bf20d40bd8570bd7af2af280f381c3f5f57f90f15
---
# HttpPut Annotation

The @HttpPut 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 PUT request is sent, and creates or updates the specified resource.

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