API Design · Junior · Question 71 of 75

When is it fine to create a resource with PUT?

Explanation

Because PUT is idempotent, repeating it with the same body is safe: the resource ends up in the same state.

Further reading

Problem with a question

API Design · Junior · question 71

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