Skip to navigation

Save an event explorer query

Saves a query owned by the signed-in user, under a name unique among their saved queries (409 when taken); an API key cannot (400). The query must validate (400 with its position); it is not run. At most 100 per user (422). Requires the METER_DATA.VIEW or INVOICE.VIEW permission.

Authentication

X-API-KEYstring
API Key authentication via header
OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

versionstringRequiredDefaults to 1
version

Headers

x-platform-idstringOptional
Platform ID.

Request

This endpoint expects an object.
namestringOptionalformat: "^.*$"0-100 characters
A name, 1 to 100 characters, unique among the owner's saved queries on the platform.
querystringOptionalformat: "^[\s\S]*$"0-2000 characters

An explorer query that validates on the platform (it is checked, never run).

Response

OK
idstring or nullOptionalRead-only

The saved query’s id (seqy_…).

namestring or nullOptionalRead-only
Its name, unique among the owner's saved queries on the platform.
querystring or nullOptionalRead-only
The explorer query.
owner_user_idstring or nullOptionalRead-only

The user who saved it (user_…); only they, or a user allowed to manage saved queries, change or delete it.

created_atstring or nullOptionalRead-only
updated_atstring or nullOptionalRead-only

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
500
Internal Server Error