Update a query.

PUT {{baseUrl}}/queries/:queryId

Update a saved query by the OCID.

Request Body

{"queryDefinition"=>{"costAnalysisUI"=>{"graph"=>"LINES", "isCumulativeGraph"=>false}, "displayName"=>"tempor ut", "reportQuery"=>{"granularity"=>"MONTHLY", "tenantId"=>"ad culpa Lorem", "compartmentDepth"=>3.3313964887725547, "dateRangeName"=>"LAST_SEVEN_DAYS", "filter"=>{"dimensions"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "filters"=>[{"value"=>"<Circular reference to #/components/schemas/Filter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Filter detected>"}], "operator"=>"NOT", "tags"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}, "forecast"=>{"timeForecastEnded"=>"2020-07-22T00:33:16.324Z", "forecastType"=>"BASIC", "timeForecastStarted"=>"1951-12-06T02:13:25.985Z"}, "groupBy"=>["minim in incididunt", "ut nulla"], "groupByTag"=>[{"key"=>"tempor", "namespace"=>"dolor ", "value"=>"aute ex officia dolore"}, {"key"=>"cillum Excepteur esse ullamco", "namespace"=>"deserunt in", "value"=>"sint dolor"}], "isAggregateByTime"=>false, "queryType"=>"CREDIT", "timeUsageEnded"=>"1951-11-01T03:11:59.216Z", "timeUsageStarted"=>"2004-05-21T08:32:00.717Z"}, "version"=>2890.80976870594}}

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a
particular request, please provide the request ID.
if-matchstringFor optimistic concurrency control. In the PUT or DELETE call
for a resource, set the if-match parameter to the value of the
etag from a previous GET or POST response for that resource.
The resource will be updated or deleted, only if the etag you
provide matches the resource's current etag value.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;compartmentId&quot;:&quot;eiusmod proident laboris&quot;,&quot;id&quot;:&quot;consequat mollit&quot;,&quot;queryDefinition&quot;:{&quot;costAnalysisUI&quot;:{&quot;graph&quot;:&quot;STACKED_LINES&quot;,&quot;isCumulativeGraph&quot;:true},&quot;displayName&quot;:&quot;ad sun&quot;,&quot;reportQuery&quot;:{&quot;granularity&quot;:&quot;MONTHLY&quot;,&quot;tenantId&quot;:&quot;incididunt sit in&quot;,&quot;compartmentDepth&quot;:3.8920349503358156,&quot;dateRangeName&quot;:&quot;MTD&quot;,&quot;filter&quot;:{&quot;dimensions&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;filters&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Filter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Filter detected\u003e&quot;}],&quot;operator&quot;:&quot;OR&quot;,&quot;tags&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},&quot;forecast&quot;:{&quot;timeForecastEnded&quot;:&quot;1953-07-19T11:56:09.211Z&quot;,&quot;forecastType&quot;:&quot;BASIC&quot;,&quot;timeForecastStarted&quot;:&quot;1987-09-06T00:22:03.940Z&quot;},&quot;groupBy&quot;:[&quot;dolor sint ut adipisicing&quot;,&quot;est do irure culpa&quot;],&quot;groupByTag&quot;:[{&quot;key&quot;:&quot;eiusmod non irure exe&quot;,&quot;namespace&quot;:&quot;laborum Lorem enim nisi&quot;,&quot;value&quot;:&quot;do non&quot;},{&quot;key&quot;:&quot;ex ut et&quot;,&quot;namespace&quot;:&quot;in aliqua dolore cupidata&quot;,&quot;value&quot;:&quot;nisi voluptate non&quot;}],&quot;isAggregateByTime&quot;:false,&quot;queryType&quot;:&quot;COST&quot;,&quot;timeUsageEnded&quot;:&quot;2010-09-10T22:56:06.907Z&quot;,&quot;timeUsageStarted&quot;:&quot;1946-10-11T19:59:05.016Z&quot;},&quot;version&quot;:8590.115076050923}}