Skip to content

Instantly share code, notes, and snippets.

@mfaisalkhatri
Last active April 6, 2026 14:42
Show Gist options
  • Select an option

  • Save mfaisalkhatri/364df601d24cb1435b36c3c52a437272 to your computer and use it in GitHub Desktop.

Select an option

Save mfaisalkhatri/364df601d24cb1435b36c3c52a437272 to your computer and use it in GitHub Desktop.
Criteria PUT POST
Purpose It is used to update or replace an existing resource entirely. It is used to create a new resource or submit data to a resource.
Idempotency It is Idempotent, multiple identical requests result in the same outcome. It is not idempotent, multiple identical requests may create multiple records.
Response Status Code Commonly returns 200 OK with updated resource. Commonly returns 201 Created with the new resource details.
Use Case Example Updating a user’s profile information. Creating a new user account.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment