API Design · Junior · Question 4 of 75

Which HTTP method should create a new resource in a collection, like a new order?

Explanation

The server assigns the ID and usually responds with 201 Created and a Location header pointing to the new resource.

Further reading

Problem with a question

API Design · Junior · question 4

Test yourself

Take the API Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz