Skip to content

Bash syntax error on v2/api/query/ #7117

@HarimbolaSantatra

Description

@HarimbolaSantatra

There's a bash syntax error on the documentation of the request samples of v2/api/query/

Here's the content of the bash request sample:

curl --request POST 'INFLUX_URL/api/v2/query?org=INFLUX_ORG' \
--header 'Content-Type: application/vnd.flux' \
--header 'Accept: application/csv \
--header 'Authorization: Token INFLUX_API_TOKEN' \
--data 'from(bucket: "example-bucket")
          |> range(start: -5m)
          |> filter(fn: (r) => r._measurement == "example-measurement")'

There's a missing closing quote from the line --header 'Accept: application/csv \.
It's apparent from the syntax highlighting on the web page and on this markdown snippet.

Relevant URLs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions