Method: properties.patch
Richiesta HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{property.name=properties/*}
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
property.name |
string
Solo output. Nome della risorsa di questa proprietà. Formato: properties/{property_id} Esempio: "properties/1000"
|
Parametri di query
Parametri |
updateMask |
string (FieldMask format)
Obbligatorio. L'elenco dei campi da aggiornare. I nomi dei campi devono essere in minuscolo con iniziali maiuscole (ad es. "field_to_update"). I campi omessi non verranno aggiornati. Per sostituire l'intera entità, utilizza un percorso con la stringa "*" per trovare una corrispondenza in tutti i campi. Si tratta di un elenco separato da virgole di nomi completi dei campi. Esempio: "user.displayName,photo" .
|
Corpo della richiesta
Il corpo della richiesta contiene un'istanza di Property
.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di Property
.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/analytics.edit
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-01-14 UTC.
[null,null,["Ultimo aggiornamento 2025-01-14 UTC."],[[["Updates a Google Analytics 4 property using the `PATCH` method and provides instructions on constructing the request."],["Requires specifying the property name in the URL path and using a FieldMask in the query parameters to indicate which fields to update."],["The request body should contain the updated Property object, following the structure defined in the provided link, and a successful response will return the updated Property object."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for making changes to the property."]]],["This document details how to update a property using a PATCH request to the specified URL: `https://analyticsadmin.googleapis.com/v1alpha/{property.name=properties/*}`. The `property.name` in the URL is a path parameter. The `updateMask` is a required query parameter to specify fields to update. The request body should contain a `Property` instance with modified values, and a successful response also returns a `Property` instance. This action requires the `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]