InfluxDB Cloud Docs Submit API issue

Influx API Service (V1 compatible endpoints) (0.1.0)

Download OpenAPI specification:Download

Write

Write time series data into InfluxDB in a V1 compatible format

query Parameters
db
required
string

The bucket to write to. If none exist a bucket will be created with a default 3 day retention policy.

p
string

User token.

precision
string

Write precision.

rp
string

The retention policy name.

u
string

Username.

header Parameters
Content-Encoding
string
Default: identity
Enum: "gzip" "identity"

When present, its value indicates to the database that compression is applied to the line-protocol body.

Zap-Trace-Span
string
Example: trace_id,1,span_id,1,baggage,[object Object]

OpenTracing span context

Request Body schema: text/plain

Line protocol body

string

Responses

Response samples

Content type
application/json
{
  • "code": "internal error",
  • "message": "string",
  • "op": "string",
  • "err": "string",
  • "line": 0
}

Query

Query InfluxDB in a V1 compatible format

query Parameters
p
string

User token.

q
string

Defines the influxql query to run.

u
string

Username.

header Parameters
Accept-Encoding
string
Default: identity
Enum: "gzip" "identity"

The Accept-Encoding request HTTP header advertises which content encoding, usually a compression algorithm, the client is able to understand.

Content-Type
string
Value: "application/vnd.influxql"
Zap-Trace-Span
string
Example: trace_id,1,span_id,1,baggage,[object Object]

OpenTracing span context

Request Body schema: text/plain

InfluxQL query to execute.

string

Responses

Response samples

Content type
application/json
{
  • "code": "internal error",
  • "message": "string"
}