Updates an existing saved search

PUT {{baseUrl}}/saved-searches/:id

Updates an existing saved search.

NOTE: You cannot update the owner of the saved search.

Request Body

{"indices"=>["identities"], "query"=>"@accounts(disabled:true)", "id"=>"0de46054-fe90-434a-b84e-c6b3359d0c64", "owner"=>{"type"=>"IDENTITY", "id"=>"2c91808568c529c60168cca6f90c1313"}, "ownerId"=>"2c91808568c529c60168cca6f90c1313", "public"=>false, "name"=>"Disabled accounts", "description"=>"Disabled accounts", "created"=>"2018-06-25T20:22:28.104Z", "modified"=>"2018-06-25T20:22:28.104Z", "columns"=>{"identity"=>[{"field"=>"displayName", "header"=>"Display Name"}, {"field"=>"e-mail", "header"=>"Work Email"}]}, "fields"=>["disabled"], "orderBy"=>{"identity"=>["lastName", "firstName"], "role"=>["name"]}, "sort"=>["displayName"], "filters"=>{"attributes.cloudAuthoritativeSource"=>{"type"=>"EXISTS", "exclude"=>true}, "accessCount"=>{"type"=>"RANGE", "range"=>{"lower"=>{"value"=>"3"}}}, "created"=>{"type"=>"RANGE", "range"=>{"lower"=>{"value"=>"2019-12-01", "inclusive"=>true}, "upper"=>{"value"=>"2020-01-01"}}}, "source.name"=>{"type"=>"TERMS", "terms"=>["HR Employees", "Corporate Active Directory"], "exclude"=>true}, "protected"=>{"type"=>"TERMS", "terms"=>["true"]}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"indices":["identities"],"query":"@accounts(disabled:true)","id":"0de46054-fe90-434a-b84e-c6b3359d0c64","owner":{"type":"IDENTITY","id":"2c91808568c529c60168cca6f90c1313"},"ownerId":"2c91808568c529c60168cca6f90c1313","public":false,"name":"Disabled accounts","description":"Disabled accounts","created":"2018-06-25T20:22:28.104Z","modified":"2018-06-25T20:22:28.104Z","columns":{"identity":[{"field":"displayName","header":"Display Name"},{"field":"e-mail","header":"Work Email"}]},"fields":["disabled"],"orderBy":{"identity":["lastName","firstName"],"role":["name"]},"sort":["displayName"],"filters":{"attributes.cloudAuthoritativeSource":{"type":"EXISTS","exclude":true},"accessCount":{"type":"RANGE","range":{"lower":{"value":"3"}}},"created":{"type":"RANGE","range":{"lower":{"value":"2019-12-01","inclusive":true},"upper":{"value":"2020-01-01"}}},"source.name":{"type":"TERMS","terms":["HR Employees","Corporate Active Directory"],"exclude":true},"protected":{"type":"TERMS","terms":["true"]}}}