TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Accepts only PUT and echoes the body

PUThttps://api.testingapis.com/api/methods/put

Request body

Optional. application/json. Optional body; described in the response.

Example body
{"a": 1}

Responses

200
Method, query, content type and body.
405
Any other verb.

Example

Request
curl -X PUT "https://api.testingapis.com/api/methods/put" \
  -H "Content-Type: application/json" \
  -d '{"a": 1}'
Response200 OK
{
  "method": "PUT",
  "message": "PUT request received",
  "path": "/api/methods/put",
  "query": {},
  "contentType": "application/json",
  "bodyLength": 8,
  "bodyTruncated": false,
  "body": "{\"a\": 1}",
  "timestamp": "2026-09-30T18:26:44Z"
}