Which HTTP method is used to create a resource?

Prepare for the TJR Bootcamp Test with quizzes and flashcards. Each question includes hints and explanations to boost your readiness for the exam!

Multiple Choice

Which HTTP method is used to create a resource?

Creating a resource is accomplished by submitting data to the server to generate a new item, with the server typically assigning a new identifier. This is what the HTTP method designed for creation does: it carries the new resource data in the request body and returns information about the created resource. GET is for retrieving data and should not change server state. PUT can create or replace a resource at a known URL and is idempotent, but for general creation of new resources without a pre-specified URL, POST is the standard choice. DELETE removes a resource, not create one.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy