v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-10-2916802.4 MB
🚰 Kitchen Sink

Put request

The PUT method is used to update or replace an existing resource on the server.

It sends the entire representation of the resource in the request payload, replacing the existing resource entirely.

If the resource does not exist, PUT can also be used to create a new resource with a specific identifier.

Typical Usage: PUT requests are commonly used to update or replace an entire resource on the server.

For example,

updating a user's profile information, replacing a document, or modifying an existing record.

put/kitchen-sink/http-methods/put

Response

Put request

messagestring
statusCodenumber
successboolean

Example response

{
  "data": {
    "headers": {
      "accept": "*/*",
      "accept-encoding": "gzip, deflate, br",
      "cache-control": "no-cache",
      "connection": "keep-alive",
      "content-length": "0",
      "cookie": "accessToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NDg5NjI2ZGMyNjVmMGFhMmRiYjczYTQiLCJlbWFpbCI6IndhamUuc2h1YmhhbTExMTJAZ21haWwuY29tIiwidXNlcm5hbWUiOiJ3YWplc2h1YmhhbTIiLCJyb2xlIjoiQURNSU4iLCJpYXQiOjE2ODY3Mjc3MjAsImV4cCI6MTY4NjgxNDEyMH0.X7DSYAaqIFVtNxqDSYWW40NNoxu-npBh0Yo7dsPIfBg; refreshToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NDg5NjI2ZGMyNjVmMGFhMmRiYjczYTQiLCJpYXQiOjE2ODY3Mjc3MjAsImV4cCI6MTY4NzU5MTcyMH0.sesIJ2P7EqaauA8JbNFe-7vbWMhH7uhiPn25x4zUG0I",
      "host": "localhost:8080",
      "postman-token": "637929c8-faf9-4f8c-a053-7c0724959b15",
      "user-agent": "PostmanRuntime/7.32.2"
    },
    "method": "PUT",
    "origin": "::ffff:172.27.0.3",
    "url": "http://localhost:8080/api/v1/kitchen-sink/http-methods/put"
  },
  "message": "PUT request",
  "statusCode": 200,
  "success": true
}