Manage a Search Query
POST/search/history/:id
Allows you to manage a search query (save a search query to the Saved Searches list under the specified ID, convert a recent search to a saved search, update an existing search). For details on how to manage a saved search, see Manage Saved Search
Required parameters include the search ID, the RQL query, the flag that marks this search as saved, and a unique name for the saved search. A best practice is to copy data from the results of a search history, update the data as necessary, and set the saved parameter to true.
This API requires Prisma Cloud system administrator role access if you don't own the search with the given search ID.
Request
Responses
- 200
- 400
- 403
- 404
successful operation
bad_request / unsupported_search_query / duplicate_search_name
cannot_update_default_saved_search / not_owner_or_same_role
not_found