Create a resource with POST
Easy30 pts~12 min
- HTTP POST
- 201 Created
- Location header
Practice app · Acme REST API
A live REST + GraphQL API with auth, validation, pagination, rate limiting and an interactive request console.
Your starter code already declares BASE_URL — call the API relative to it.
Objective
Create a user with POST /users and verify the 201 response, the echoed fields and the Location header.
Your task
- 1POST BASE_URL + "/users" with JSON { "name": "Nina QA", "email": <unique>, "role": "editor" }.
- 2Assert 201 and that the body contains a numeric id plus the name, email and role you sent.
- 3Assert the Location header ends with /users/{id}.
Acceptance criteria
- POST /users returns 201
- At least 3 assertions pass
Constraints
- Use a unique email per run, e.g. qa.<timestamp>@example.test — emails must not already exist (409 EMAIL_TAKEN).
Fixtures
- apiKey
- tqa_live_key_123
- basicUser
- admin
- basicPassword
- secret
- username
- qa@target.dev
- password
- Test@123
API testing · QA Automation · Requests & methods