Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

PUT/PATCH REST APIs - All you need to know about why and where to use Put vs Patch

76.9K views
•
September 15, 2021
by
sudoCODE
YouTube video player
PUT/PATCH REST APIs - All you need to know about why and where to use Put vs Patch

TL;DR

PUT and PATCH methods are used to update resources in a Rest API, with PUT allowing both creation and update, while PATCH is used for making specific changes to a resource.

Transcript

hello and welcome to sudo boot in case you guys don't know me and you're new to the channel my name is yokita sharma and i work as a software engineer for curry this is a video in the series of rest api videos and today we are going to discuss put and patch methods so let's get started up until now we have seen how to use post methods to create a r... Read More

Key Insights

  • 🤼‍♂️ PUT and PATCH methods are used for updating resources in Rest API.
  • ❓ PUT can be used for both creating and updating resources.
  • 💱 PATCH is more efficient when only specific changes need to be made to a resource.
  • ❓ PUT requests require sending the entire body of the resource in the request payload.
  • 💱 PATCH requests only require sending the changes or differences in the request payload.
  • 🛟 Servers may support or restrict the creation of resources using PUT.
  • 💱 PUT and PATCH requests are idempotent and do not change the server state when sent multiple times.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What is the difference between PUT and PATCH methods?

PUT is used for replacing the whole body of a resource, while PATCH is used for making specific changes or updates to a resource without replacing the entire body.

Q: Can PUT be used for creating a resource?

Yes, if the client has access to the resource's ID and the server supports it, PUT can be used to create a resource by sending the ID and the resource attributes in the request body.

Q: What happens when a PUT request is sent for a non-existent resource?

If the server supports the creation of resources using PUT, it will create the resource if it does not exist based on the ID sent in the request body.

Q: How is PATCH different from PUT?

PATCH is used for making specific changes to a resource, whereas PUT replaces the entire body of the resource. PATCH is more efficient when only a few attributes need to be updated.

Key Insights:

  • PUT and PATCH methods are used for updating resources in Rest API.
  • PUT can be used for both creating and updating resources.
  • PATCH is more efficient when only specific changes need to be made to a resource.
  • PUT requests require sending the entire body of the resource in the request payload.
  • PATCH requests only require sending the changes or differences in the request payload.
  • Servers may support or restrict the creation of resources using PUT.
  • PUT and PATCH requests are idempotent and do not change the server state when sent multiple times.
  • POST method is used for creating resources, while PUT and PATCH are for updating existing resources.

Summary & Key Takeaways

  • PUT and PATCH methods are used for updating resources in Rest API.

  • PUT can be used for both creating and updating resources, depending on the existence of the resource.

  • PATCH is used for making specific changes to a resource without replacing the whole body.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from sudoCODE 📚

Databases types: SQL, NoSQL, Column, Search, Key Value | System Design Tutorials | Part 6 | 2020 thumbnail
Databases types: SQL, NoSQL, Column, Search, Key Value | System Design Tutorials | Part 6 | 2020
sudoCODE
Low Level Design 102 |What is LLD(Low Level Design)? Simplified steps to learn and break LLD problem thumbnail
Low Level Design 102 |What is LLD(Low Level Design)? Simplified steps to learn and break LLD problem
sudoCODE
High Level Design vs Low Level Design | HLD vs LLD | System Design Concepts thumbnail
High Level Design vs Low Level Design | HLD vs LLD | System Design Concepts
sudoCODE
Low Level Design 104 | How to build Classes in Object Oriented Design | 2022 | System Design thumbnail
Low Level Design 104 | How to build Classes in Object Oriented Design | 2022 | System Design
sudoCODE
Low Level Design 107 | Liskov Substitution Principle | 2022 | System Design thumbnail
Low Level Design 107 | Liskov Substitution Principle | 2022 | System Design
sudoCODE

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.