Skip to navigation

Update a saved event explorer query

Changes the name and/or the query (validated, not run); by its owner or a user allowed to manage saved queries (403 otherwise). 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
resourceIdstringRequiredDefaults to
The ID of the resource to be requested.

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