logo

NJP

ServiceNow Scripted REST APIs (2026): 07 – PUT and PATCH

Secretary of Simplification · Jun 25, 2026 · video

PUT and PATCH both update existing records — but they're not the same thing. In this video we look at the semantic difference and add an updated endpoint to the Vehicles API. *You'll learn:* - The difference between PUT (full replacement) and PATCH (partial update) - How to implement a partial update using GlideRecord - How two different HTTP methods can share the same resource path as separate Scripted REST resources *Chapters:* - 0:00 Introduction - 0:37 Concept - 1:57 Demo - 3:41 Outro *GitHub:* https://github.com/jnichols-servicenow/SN2026-Vehicles-API *Links:* - HTTP semantics — PUT (RFC 9110) — https://www.rfc-editor.org/rfc/rfc9110#section-9.3.4 - HTTP semantics — PATCH (RFC 5789) — https://www.rfc-editor.org/rfc/rfc5789 *Series navigation:* - Previous: 06 — POST - Next: 08 — DELETE - Full playlist: https://www.youtube.com/playlist?list=PLrhqGp3sUzhvp1sfgP8OZjXRxKOP\_cyBU

View original source

https://www.youtube.com/watch?v=ayIpvGJMaMc