From 322c6b3dce06f91a34ba5674de48e28022ffd4a1 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Thu, 17 Nov 2022 09:43:40 +0200 Subject: [PATCH] fix create snapshot request docs (#15242) --- website/content/api-docs/volumes.mdx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/website/content/api-docs/volumes.mdx b/website/content/api-docs/volumes.mdx index 0606b8975..ee9005a7f 100644 --- a/website/content/api-docs/volumes.mdx +++ b/website/content/api-docs/volumes.mdx @@ -600,7 +600,7 @@ provider. Only CSI plugins that implement the | Method | Path | Produces | | -------- | --------------------------------- | ------------------ | -| `PUT` | `/v1/volumes/snapshot/:volume_id` | `application/json` | +| `POST` | `/v1/volumes/snapshot` | `application/json` | The table below shows this endpoint's support for [blocking queries](/api-docs#blocking-queries) and @@ -633,18 +633,14 @@ parameters. ] } ``` -### Parameters - -- `:volume_id` `(string: )` - Specifies the ID of the volume to - snapshot. This must be the full ID. This is specified as part of the path. ### Sample Request ```shell-session $ curl \ - --request PUT \ + --request POST \ --data @payload.json \ - https://localhost:4646/v1/volume/csi/volume-id1/snapshot + https://localhost:4646/v1/volumes/snapshot ``` ### Sample Response