diff --git a/layouts/shortcodes/api-endpoint.html b/layouts/shortcodes/api-endpoint.html
index 0ed0133c4..0053a729b 100644
--- a/layouts/shortcodes/api-endpoint.html
+++ b/layouts/shortcodes/api-endpoint.html
@@ -1,6 +1,11 @@
-{{ $method := .Get "method" | upper }}
-{{ $methodStyle := .Get "method" | lower }}
-{{ $endpoint := .Get "endpoint" }}
+{{- $method := .Get "method" | upper -}}
+{{- $methodStyle := .Get "method" | lower -}}
+{{- $endpoint := .Get "endpoint" -}}
+{{- $apiRef := .Get "api-ref" | default "" -}}
-{{ $method }} {{ $endpoint }}
+ {{- if ne $apiRef "" -}}
+ {{ $method }} {{ $endpoint }}
+ {{- else -}}
+ {{ $method }} {{ $endpoint }}
+ {{- end -}}
\ No newline at end of file
diff --git a/shared/text/api/v2.0/buckets/oss/create.sh b/shared/text/api/v2.0/buckets/oss/create.sh
index 4354bee6e..c86353542 100644
--- a/shared/text/api/v2.0/buckets/oss/create.sh
+++ b/shared/text/api/v2.0/buckets/oss/create.sh
@@ -2,8 +2,8 @@ INFLUX_TOKEN=YOUR_API_TOKEN
INFLUX_ORG_ID=YOUR_ORG_ID
curl --request POST \
- "http://localhost:8086/api/v2/buckets" \
- --header "Authorization: Token ${INFLUX_TOKEN}" \
+ "http://localhost:8086/api/v2/buckets" \
+ --header "Authorization: Token ${INFLUX_TOKEN}" \
--header "Content-type: application/json" \
--data '{
"orgID": "'"${INFLUX_ORG_ID}"'",