### YamlMime:JavaType uid: "com.azure.core.annotation.Patch" fullName: "com.azure.core.annotation.Patch" name: "Patch" nameWithType: "Patch" summary: "HTTP PATCH method annotation describing the parameterized relative path to a REST endpoint for resource update." syntax: "public interface Patch implements Annotation" methods: - uid: "com.azure.core.annotation.Patch.value()" fullName: "com.azure.core.annotation.Patch.value()" name: "value()" nameWithType: "Patch.value()" summary: "Get the relative path of the annotated method's PATCH URL." modifiers: - "abstract" syntax: "public abstract String value()" desc: "Get the relative path of the annotated method's PATCH URL." returns: description: "The relative path of the annotated method's PATCH URL." type: "String" type: "interface" desc: "HTTP PATCH method annotation describing the parameterized relative path to a REST endpoint for resource update.\n\nThe required value can be either a relative path or an absolute path. When it's an absolute path, it must start with a protocol or a parameterized segment (Otherwise the parse cannot tell if it's absolute or relative).\n\n**Example 1: Relative path segments**\n\n```java\n@Patch(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/\n Microsoft.Compute/virtualMachines/{vmName}\")\n VirtualMachine patch(@PathParam(\"resourceGroupName\") String rgName, @PathParam(\"vmName\") String\n vmName, @PathParam(\"subscriptionId\") String subscriptionId, @BodyParam VirtualMachineUpdateParameters\n updateParameters);\n```\n\n**Example 2: Absolute path segment**\n\n```java\n@Patch({vaultBaseUrl}/secrets/{secretName})\n Secret patch(@PathParam(\"vaultBaseUrl\" encoded = true) String vaultBaseUrl, @PathParam(\"secretName\") String\n secretName, @BodyParam SecretUpdateParameters updateParameters);\n```" implements: - "Annotation" metadata: {} package: "com.azure.core.annotation" artifact: com.azure:azure-core:1.33.0