---
title: "PATCH /v1/settings/searchapplications/{searchapplicationsId}"
method: PATCH
path: "/v1/settings/searchapplications/{searchapplicationsId}"
tags: ["settings"]
---

# PATCH /v1/settings/searchapplications/{searchapplicationsId}

`PATCH /v1/settings/searchapplications/{searchapplicationsId}`

## Request

- Base URL: `https://cloudsearch.googleapis.com`
- URL: `https://cloudsearch.googleapis.com/v1/settings/searchapplications/{searchapplicationsId}`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud_search`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud_search`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud_search.settings`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud_search.settings`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud_search.settings.query`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud_search.settings.query`

Updates a search application. **Note:** This API requires an admin account to execute.

## Path parameters

- `searchapplicationsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `updateMask` string, google-fieldmask

## Request body

- SearchApplication: SearchApplication
  - `dataSourceRestrictions` DataSourceRestriction[]: Retrictions applied to the configurations. The maximum number of elements is 10.
    - `filterOptions` FilterOptions[]: Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. NOTE: Suggest API supports only few filters at the moment: "objecttype", "type" and "mimetype". For now, schema specific filters cannot be used to filter suggestions.
      - `filter` Filter: A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND.
        - `compositeFilter` CompositeFilter
          - `logicOperator` 'AND' | 'OR' | 'NOT': The logic operator of the sub filter.
          - `subFilters` Filter[]: Sub filters.
        - `valueFilter` ValueFilter
          - `operatorName` string: The `operator_name` applied to the query, such as *price_greater_than*. The filter can work against both types of filters defined in the schema for your data source: 1. `operator_name`, where the query filters results by the property that matches the value. 2. `greater_than_operator_name` or `less_than_operator_name` in your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query.
          - `value` Value: Definition of a single value with generic type.
            - `booleanValue` boolean
            - `dateValue` Date: Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999.
              - …
            - `doubleValue` number, double
            - `integerValue` string, int64
            - `stringValue` string
            - `timestampValue` string, google-datetime
      - `objectType` string: If object_type is set, only objects of that type are returned. This should correspond to the name of the object that was registered within the definition of schema. The maximum length is 256 characters.
    - `source` Source: Defines sources for the suggest/search APIs.
      - `name` string: Source name for content indexed by the Indexing API.
      - `predefinedSource` 'NONE' | 'QUERY_HISTORY' | 'PERSON' | 'GOOGLE_DRIVE' | 'GOOGLE_GMAIL' | 'GOOGLE_SITES' | 'GOOGLE_GROUPS' | 'GOOGLE_CALENDAR' | 'GOOGLE_KEEP': Predefined content source for Google Apps.
  - `defaultFacetOptions` FacetOptions[]: The default fields for returning facet results. The sources specified here also have been included in data_source_restrictions above.
    - `integerFacetingOptions` IntegerFacetingOptions: Used to specify integer faceting options.
      - `integerBuckets` string[]: Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}.
    - `numFacetBuckets` integer: Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100.
    - `objectType` string: If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets.
    - `operatorName` string: The name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions
    - `sourceName` string: Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used.
  - `defaultSortOptions` SortOptions
    - `operatorName` string: The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable.
    - `sortOrder` 'ASCENDING' | 'DESCENDING': Ascending is the default sort order
  - `displayName` string: Display name of the Search Application. The maximum length is 300 characters.
  - `enableAuditLog` boolean: Indicates whether audit logging is on/off for requests made for the search application in query APIs.
  - `name` string: The name of the Search Application. Format: searchapplications/{application_id}.
  - `operationIds` string[]: Output only. IDs of the Long Running Operations (LROs) currently running for this schema. Output only field.
  - `queryInterpretationConfig` QueryInterpretationConfig: Default options to interpret user query.
    - `forceDisableSupplementalResults` boolean: Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results.
    - `forceVerbatimMode` boolean: Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode.
  - `returnResultThumbnailUrls` boolean: With each result we should return the URI for its thumbnail (when applicable)
  - `scoringConfig` ScoringConfig: Scoring configurations for a source while processing a Search or Suggest request.
    - `disableFreshness` boolean: Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI.
    - `disablePersonalization` boolean: Whether to personalize the results. By default, personal signals will be used to boost results.
  - `sourceConfig` SourceConfig[]: Configuration for a sources specified in data_source_restrictions.
    - `crowdingConfig` SourceCrowdingConfig: Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host "crowd out" other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source.
      - `numResults` integer: Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100.
      - `numSuggestions` integer: Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.
    - `scoringConfig` SourceScoringConfig: Set the scoring configuration. This allows modifying the ranking of results for a source.
      - `sourceImportance` 'DEFAULT' | 'LOW' | 'HIGH': Importance of the source.
    - `source` Source: Defines sources for the suggest/search APIs.
      - `name` string: Source name for content indexed by the Indexing API.
      - `predefinedSource` 'NONE' | 'QUERY_HISTORY' | 'PERSON' | 'GOOGLE_DRIVE' | 'GOOGLE_GMAIL' | 'GOOGLE_SITES' | 'GOOGLE_GROUPS' | 'GOOGLE_CALENDAR' | 'GOOGLE_KEEP': Predefined content source for Google Apps.

## Response `200`

Successful response

- Operation: This resource represents a long-running operation that is the result of a network API call.
  - `done` boolean: If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  - `error` Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `metadata` object: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
  - `name` string: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  - `response` object: The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.

## Changes

- **2026-12-04** `e6b5623d031d`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud_search` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud_search` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud_search.settings.query` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud_search.settings.query` was removed from the endpoint's security scheme `Oauth2c`
- **2026-11-09** `b2f1256e48fb`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud_search` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud_search` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud_search.settings.query` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud_search.settings.query` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/cloudsearch/changes/v1/settings/searchapplications/:searchapplicationsId/patch.md)

---

[API](https://skmtc.dev/google/apis/cloudsearch.md) - [All operations](https://skmtc.dev/google/apis/cloudsearch/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/cloudsearch/revisions/e6b5623d031d?raw)
