lookup> POST

POST

Submits an entity to the target resource, typically creating a sub-resource or triggering processing. Neither safe nor idempotent.

unsafenot idempotentnot cacheableRFC7231#4.3.3
PropertyValue
Safe (does not modify state)No
Idempotent (repeatable)No
CacheableNo

Submits an entity to the target resource, typically creating a sub-resource or triggering processing. Neither safe nor idempotent.

curl -X POST https://api.example.com/users -H "Content-Type: application/json" -d '{"name":"Ada"}'
POST /api/users HTTP/1.1
Host: example.com
Content-Type: application/json

{"name":"Ada"}
POSTGET
Submit dataRetrieve data
Not safeSafe
Not idempotentIdempotent

Is the POST method safe?

POST is not a safe method — calling it can change resource state.

What happens if I send POST repeatedly?

POST is not idempotent — repeated requests may produce different results.

All HTTP methods

Related status codes

Related headers