API testing

Update a field with PATCH

Medium70 pts~25 min
  • HTTP PATCH
  • Partial update
Practice app · Acme REST API

A live REST + GraphQL API with auth, validation, pagination, rate limiting and an interactive request console.

BASE_URL
/api/practice
Console app
/lab/api-testing-update-a-field-with-patch

Your starter code already declares BASE_URL — call the API relative to it.

Objective

Change a single field with PATCH and prove every other field is untouched.

Your task

  1. 1Create a user and keep its full response body.
  2. 2PATCH BASE_URL + "/users/{id}" with { "name": "Patched Name" } and assert 200.
  3. 3Assert name changed while email, role and createdAt are identical to the original.

Acceptance criteria

  • PATCH /users/{id} returns 200
  • 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).
  • The practice API is shared in-memory state: only modify users you created yourself.

Fixtures

apiKey
tqa_live_key_123
basicUser
admin
basicPassword
secret
username
qa@target.dev
password
Test@123

API testing · API Testing · Requests & methods