---
title: "Discussion on \"PUT vs JSON Merge Patch vs JSON Patch: modeling partial updates in OpenAPI without the null ambiguity\" | Hashnode"
description: "Discussion on \"PUT vs JSON Merge Patch vs JSON Patch: modeling partial updates in OpenAPI without the null ambiguity\". PATCH is not PUT with fewer fields; the media type defines its semantics. JSON Merge Patch treats null as delete and replaces arrays; JSON Patch sends atomic operations and pairs with optimistic concurrency. Here is when to use each and the OpenAPI for all three."
url: "https://hashnode.com/posts/openapi-patch-json-merge-patch-rfc6902-vs-put/6aca0797be0680c220f7f912"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [PUT vs JSON Merge Patch vs JSON Patch: modeling partial updates in OpenAPI without the null ambiguity](https://blogs.powerduck.com/openapi-patch-json-merge-patch-rfc6902-vs-put?utm_source=hashnode&utm_medium=feed)

PATCH is not PUT with fewer fields; the media type defines its semantics. JSON Merge Patch treats null as delete and replaces arrays; JSON Patch sends atomic operations and pairs with optimistic concurrency. Here is when to use each and the OpenAPI for all three.

Oct 7 · 7 min read · blogs.powerduck.com  
Read the article

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#api-design](https://hashnode.com/tag/api-design)
-   [#http](https://hashnode.com/tag/http)
-   [#best-practices](https://hashnode.com/tag/best-practices)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
