Use it when configuring, checking or troubleshooting HTTP Methods in APIs.
HTTP Methods
The semantic contract of HTTP methods used by APIs, especially safety, idempotency and expected resource effect.
method → semantics → server action
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
GETPrimary Commands
Configuration and operational commands for this Topic.
GETReferenceHTTP method that reads a resource without changing it.
Use when: Use after confirming the REST API target and before changing state.
Quick note: Cross-platform automation / API / controller. Tool success, HTTP 2xx or changed=true does not prove idempotency, complete realization, service health or safe retry behavior.
HTTP / REST API · mixedPOSTReferenceHTTP method that creates a resource or triggers an action.
Use when: Use after confirming the REST API target and before changing state.
Quick note: Cross-platform automation / API / controller. Tool success, HTTP 2xx or changed=true does not prove idempotency, complete realization, service health or safe retry behavior.
HTTP / REST API · mixedPUTReferenceHTTP method that replaces a whole resource.
Use when: Use after confirming the REST API target and before changing state.
Quick note: Cross-platform automation / API / controller. Tool success, HTTP 2xx or changed=true does not prove idempotency, complete realization, service health or safe retry behavior.
HTTP / REST API · mixedPATCHReferenceHTTP method that changes parts of a resource.
Use when: Use after confirming the REST API target and before changing state.
Quick note: Cross-platform automation / API / controller. Tool success, HTTP 2xx or changed=true does not prove idempotency, complete realization, service health or safe retry behavior.
HTTP / REST API · mixedDELETEReferenceHTTP method that deletes a resource.
Use when: Use after confirming the REST API target and before changing state.
Quick note: Cross-platform automation / API / controller. Tool success, HTTP 2xx or changed=true does not prove idempotency, complete realization, service health or safe retry behavior.
HTTP / REST API · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
operation intent → resource → method semantics → route allowance → request → response → resource state
Healthy evidence: method choice matches documented resource semantics, retries respect idempotency and final resource state matches intent.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: mutation through safe methods, blind retries of non-idempotent calls, method/route mismatch or success inferred from verb choice.
Step 3 Common mistakes Narrow the fault
- Retrying POST and creating duplicates.
- Using PUT with a partial body and wiping other fields.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Method name ≠ server behavior; an implementation can violate standard method semantics.
- Idempotent method ≠ identical response every time; state may remain stable while metadata or status differs.
- Safe method ≠ authorization-free; read operations can still expose sensitive information.
- Allowed method ≠ valid operation for every resource; route and resource state still constrain use.
curl -X OPTIONS -i https://<api>/v1/items— allowed methods- Safe (GET/HEAD) vs unsafe methods — semantics
- Idempotent methods (GET, PUT, DELETE) — retry safety
ReferenceWhat it is1 section · depth on demand
Core model
The semantic contract of HTTP methods used by APIs, especially safety, idempotency and expected resource effect.
ReferenceImportant terms & boundaries3 sections · depth on demand
What this shows and what it does not
The selected method communicates intended semantics but does not show the server implemented those semantics correctly.
In depth
HTTP methods tell an API what to do with a resource. Using the right method — and knowing which are safe and idempotent — determines whether retries and repeated runs are harmless.
| Method | Purpose | Safe | Idempotent |
|---|---|---|---|
| GET | Read | Yes | Yes |
| POST | Create / trigger action | No | No |
| PUT | Create or replace | No | Yes |
| PATCH | Partial update | No | Usually not guaranteed |
| DELETE | Remove | No | Yes |
| HEAD / OPTIONS | Metadata / capabilities | Yes | Yes |
Retrying a failed POST can create duplicates, so check whether the first attempt succeeded (or use an idempotency key if the API supports one) before retrying. Some APIs use POST for everything; read the documentation rather than assuming REST conventions.
Example
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in APIs > HTTP Methods. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc9110 · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
HTTP Methods API boundary map
Fast request/delivery, trust, processing and verification boundaries for HTTP Methods.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Caller / request | Environment/version, identity and exact request contract are attributable | Hidden defaults, wrong endpoint/version, leaked or mismatched credentials |
| Server / response | Status, headers, structured body and request ID are interpreted together | Status-only handling, ignored error body, ambiguous async result or unsafe retry |
| State / proof | Write result is reconciled with resource read-back or acceptance test | Response success treated as final target success without verification |
| Troubleshooting | First failed boundary is preserved, changed minimally and retested | Blind retries, credential rotation, replay or payload edits before evidence is captured |