API Reference
Update explorer preset
/api/explorer-presets/{id}
Updates a preset's name and/or definition. Creator or admin/superadmin only. Applies the same definition validation as create.
Operation IDupdateExplorerPreset
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Path parameters
idintegerrequiredResource ID
Request body
This request body is required.
Content typeapplication/json
requestobject4 properties
namestringconnector_idinteger | nullresourcestring | nulldefinitionobject12 properties
modestringrequiredParameters are allowed in visual mode (placeholders in filter values) and in raw mode when rawQuery is valid JSON (placeholders inside JSON string literals). SQL/OData raw queries cannot be parameterized.
filtersarray<ExplorerFilter>Array items
itemobject4 properties
fieldstringrequiredoperatorstringrequiredvaluestringrequiredA literal value, or a {{param}} placeholder referencing a name in the preset's parameters.
valueTypestringOptional type hint. Use objectId for MongoDB ObjectId fields so the value is coerced to Extended JSON on apply.
actionstringVisual builder action. Defaults to find when omitted.
rawQuerystringRaw query string for mode: raw (SQL, Mongo Extended JSON, or OData). Ignored by parameterization.
columnsarray<string>Array items
itemstringlimitstringsortstringVisual-mode sort column
orderstringVisual-mode sort direction (omit or asc when unsorted / ascending)
resultViewstringjsonatastringcsvDelimiterstringparametersarray<PresetParameter>Visual-mode only. Every parameter must be referenced by a {{name}} placeholder in a filter value, and every placeholder must reference a declared parameter.
Array items
itemobject11 properties
namestringrequiredReferenced as {{name}} in a filter value. Letters, numbers, and underscores only; unique within the preset.
labelstringrequiredShown in the apply dialog.
requiredbooleantypestringrequiredstring — free text. objectId — free text validated as a 24-char hex ObjectId. mongoRecord — searchable record picker over a Mongo collection on the preset's connector.
collectionstringRequired for mongoRecord. The Mongo collection to query (e.g. migration_jobs).
valueFieldstringmongoRecord. Field substituted into the filter. Defaults to _id (coerced to ObjectId hex).
labelFieldstringmongoRecord. Primary display label (e.g. name).
descriptionFieldsarray<string>mongoRecord. Muted metadata fields shown under the label.
Array items
itemstringsearchFieldsarray<string>mongoRecord. Fields searched server-side for the picker query.
Array items
itemstringfilterobjectmongoRecord. Base filter merged into every picker query.
sortobjectmongoRecord. Mongo sort object.
Additional properties
valueintegerSuccess response body
200Updated preset
Updated preset
Content typeapplication/json
responseobject8 properties
idintegernamestringconnector_idinteger | nullresourcestring | nulldefinitionobject12 properties
modestringrequiredParameters are allowed in visual mode (placeholders in filter values) and in raw mode when rawQuery is valid JSON (placeholders inside JSON string literals). SQL/OData raw queries cannot be parameterized.
filtersarray<ExplorerFilter>Array items
itemobject4 properties
fieldstringrequiredoperatorstringrequiredvaluestringrequiredA literal value, or a {{param}} placeholder referencing a name in the preset's parameters.
valueTypestringOptional type hint. Use objectId for MongoDB ObjectId fields so the value is coerced to Extended JSON on apply.
actionstringVisual builder action. Defaults to find when omitted.
rawQuerystringRaw query string for mode: raw (SQL, Mongo Extended JSON, or OData). Ignored by parameterization.
columnsarray<string>Array items
itemstringlimitstringsortstringVisual-mode sort column
orderstringVisual-mode sort direction (omit or asc when unsorted / ascending)
resultViewstringjsonatastringcsvDelimiterstringparametersarray<PresetParameter>Visual-mode only. Every parameter must be referenced by a {{name}} placeholder in a filter value, and every placeholder must reference a declared parameter.
Array items
itemobject11 properties
namestringrequiredReferenced as {{name}} in a filter value. Letters, numbers, and underscores only; unique within the preset.
labelstringrequiredShown in the apply dialog.
requiredbooleantypestringrequiredstring — free text. objectId — free text validated as a 24-char hex ObjectId. mongoRecord — searchable record picker over a Mongo collection on the preset's connector.
collectionstringRequired for mongoRecord. The Mongo collection to query (e.g. migration_jobs).
valueFieldstringmongoRecord. Field substituted into the filter. Defaults to _id (coerced to ObjectId hex).
labelFieldstringmongoRecord. Primary display label (e.g. name).
descriptionFieldsarray<string>mongoRecord. Muted metadata fields shown under the label.
Array items
itemstringsearchFieldsarray<string>mongoRecord. Fields searched server-side for the picker query.
Array items
itemstringfilterobjectmongoRecord. Base filter merged into every picker query.
sortobjectmongoRecord. Mongo sort object.
Additional properties
valueintegercreated_byintegercreated_atstring · date-timeupdated_atstring | null · date-timeError responses
400Validation error (invalid definition)
Validation error (invalid definition)
Content typeapplication/json
responseobject2 properties
errorstringmessagestring404Resource not found
Resource not found
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "NOT_FOUND",
"message": "Resource not found"
}