From d0677aa148e29b1b559e1162b709bcde084abe45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Maia?= Date: Thu, 1 Oct 2020 16:01:13 +0100 Subject: [PATCH] Fix docs on API for volume detaching (#9002) `nomad volume detach volume-id 00000000-0000-0000-0000-000000000000` produces an API call containing the UUID as part of the query string. This is the only way the API accepts the request correctly - if you pass it in the payload you get `detach requires node ID` --- website/pages/api-docs/volumes.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/pages/api-docs/volumes.mdx b/website/pages/api-docs/volumes.mdx index 11488047c13..1fc52d90d8c 100644 --- a/website/pages/api-docs/volumes.mdx +++ b/website/pages/api-docs/volumes.mdx @@ -360,12 +360,12 @@ The table below shows this endpoint's support for path. - `node` `(string: )`- The node to detach the volume from. +This is specified as a query string parameter. ### Sample Request ```shell-session $ curl \ --request DELETE \ - --data @payload.json \ - https://localhost:4646/v1/volume/csi/volume-id/detach + https://localhost:4646/v1/volume/csi/volume-id/detach?node=00000000-0000-0000-0000-000000000000 ```