Can not create script: 404 Not Found: path not found

I am unable to create my first script. Error message: Error: failed to create script: 404 Not Found: path not found

Even the example given at influx scripts create | InfluxDB OSS v2 Documentation
fails

influx scripts create
-n “example-script” \
-d “a simple example”
-l “flux” \
-s $FLUX_SCRIPT \
–http-debug
2025/06/19 19:07:36
POST /api/v2/scripts HTTP/1.1
Host: localhost:8086
User-Agent: influx/dev (darwin) Sha/none Date/2023-04-28T14:24:08Z
Transfer-Encoding: chunked
Accept: application/json
Authorization: Token 39Fee…wNiQ==
Content-Type: application/json
Accept-Encoding: gzip

10e
{“description”:“a simple example”,“language”:“flux”,“name”:“example-script”,“script”:“\n from(bucket: "example-bucket")\n |\u003e range(start: -10h)\n |\u003e filter(fn: (r) =\u003e r._measurement == "m")\n |\u003e aggregateWindow(every: 1h, fn: mean)\n”}

0

2025/06/19 19:07:36
HTTP/1.1 404 Not Found
Content-Length: 54
Content-Type: application/json; charset=utf-8
Date: Thu, 19 Jun 2025 17:07:36 GMT
X-Influxdb-Build: OSS
X-Influxdb-Version: v2.7.1
X-Platform-Error-Code: not found

{
“code”: “not found”,
“message”: “path not found”
}
Error: failed to create script: 404 Not Found: path not found

Hello @eckarth,
Unfortunately, invokable scripts are only supported in InfluxDB Cloud, not in InfluxDB OSS.

It wold have saved me many hours if the docu would state that.

Oh, I am sorry. I have to admit that I did not read the page carefully enough.