Back to challenges
API TestingAPIAdvanced

Create user API

?

Scenario

Your interview prompt

POST /users accepts name, email, role, password, departmentId, and optional inviteMessage. Only admins can create users. Emails are unique case-insensitively. The endpoint returns 201 with id, email, role, status, createdAt, and inviteSent, publishes user.created, and sends an invitation email.

Try the API trainer version

List flows, risks, edge cases, data conditions, UX, security, API/backend, and performance concerns.

Tip: a stronger answer usually mixes happy path, negative cases, state changes, data, backend, UX, accessibility, and risk.

How to structure your answer

Happy pathNegative casesData rulesSecurity/API risksUX/performance