Method: settings.datasources.patch

Updates a datasource.

Note: This API requires an admin account to execute.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



The name of the datasource resource. Format: datasources/{sourceId}.

The name is ignored when creating a datasource.

Query parameters


object (DebugOptions)

Common debug options.


string (FieldMask format)

Only applies to settings.datasources.patch.

Update mask to control which fields to update. Example field paths: name, displayName.

  • If updateMask is non-empty, then only the fields specified in the updateMask are updated.
  • If you specify a field in the updateMask, but don't specify its value in the source, that field is cleared.
  • If the updateMask is not present or empty or has the value *, then all fields are updated.

Request body

The request body contains an instance of DataSource.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authorization guide.