Which HTTP method is typically used to update an existing resource partially in a REST API?
Think about the method that allows partial updates without replacing the entire resource.
PATCH is used for partial updates of a resource, while PUT replaces the entire resource. GET retrieves data, and POST creates new resources.
What is the expected HTTP status code returned by a REST API after successfully creating a new resource?
It indicates that a new resource was successfully created.
201 Created is the standard status code for successful resource creation. 200 OK is general success, 204 No Content means success with no body, and 400 Bad Request indicates client error.
You receive this JSON response from a REST API call:
{"userId": 123, "name": "Alice", "email": "alice@example.com"}Which Postman test script assertion correctly verifies the presence of the email field?
Use Postman's pm.expect with to.have.property to check JSON keys.
Option D correctly uses pm.expect to assert the JSON response has the email property. Option D uses a non-existent method, B and D do not assert properly.
You send a GET request to a protected REST API endpoint using Postman but receive a 401 Unauthorized response. Which of the following is the most likely cause?
401 status means the server refuses access due to authentication issues.
401 Unauthorized means the request lacks valid authentication credentials. Incorrect URL usually returns 404, missing body fields often cause 400, and server down causes no response or 5xx errors.
Which Postman feature allows you to run a series of API requests with tests automatically and generate a detailed report?
It runs multiple requests in sequence and shows test results.
Postman Collection Runner lets you run all requests in a collection with tests and view results. Postman Monitor schedules runs in the cloud, Runner and Collection Runner are often used interchangeably but Collection Runner is the correct term. Postman Console is for debugging.