There's an endpoint POST /api/users: it accepts JSON with the fields email and name, and on success returns status 201 and the created user with the fields id, email, name and createdAt. Write automated tests for this endpoint: a positive scenario that checks the response schema, and a couple of negative ones.
~15 min by voice
How to approach it
The interviewer wants to see whether you can write API tests that actually catch bugs and pass reliably on repeated runs. It's important to clarify the contract before coding, check the status, the schema and the data, cover meaningful negative cases, and not leave junk on the environment.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.