API Testing · Middle · Question 21 of 75

What is mass assignment in an API?

Show the answer

Correct answer: The API saves fields the client shouldn't set, like role

Explanation

Sending {"name":"Ann","role":"admin"} to a profile update shouldn't make you an admin. Testers try extra privileged fields.

Further reading

Problem with a question

API Testing · Middle · question 21

Test yourself

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

Take this quiz