Google AnalyticsGoogle AnalyticsSEO/AEO

Update a Measurement Protocol secret on a GA4 stream

google-analytics.x.analyticsadmin-properties-datastreams-measurementprotocolsecrets-patch

measurementProtocolSecrets.patch — Updates a measurement protocol secret.

Price
freeAt list price
Success rate
—No success-rate data yetLast 30 days · 0 calls
Latency p50
——
Last verified
—Not verified yet
PATCHhttps://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-datastreams-measurementprotocolsecrets-patchBeta
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

ParameterTypeRequiredDescriptionExample
Path parameters
namestringRequiredIdentifier. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
Query parameters
updateMaskstringOptionalRequired. The list of fields to be updated. Omitted fields will not be updated.
  • Path parameters
  • namestringRequired

    Identifier. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}

  • Query parameters
  • updateMaskstringOptional

    Required. The list of fields to be updated. Omitted fields will not be updated.

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the console.

Beta
curl -X PATCH 'https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-datastreams-measurementprotocolsecrets-patch' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

This gateway API is in beta; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.