Prueba el servidor de MCP para Google Analytics. Instala desde
GitHub y consulta el
anuncio para obtener más detalles.
Method: properties.patch
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Solicitud HTTP
PATCH https://analyticsadmin.googleapis.com/v1beta/{property.name=properties/*}
La URL usa la sintaxis de la transcodificación gRPC.
Parámetros de ruta de acceso
Parámetros |
property.name |
string
Solo salida. Es el nombre del recurso de esta propiedad. Formato: properties/{property_id} Ejemplo: "properties/1000"
|
Parámetros de consulta
Parámetros |
updateMask |
string (FieldMask format)
Obligatorio. La lista de campos que se actualizará. Los nombres de los campos deben estar en snake case (p.ej., "campo_para_actualizar"). No se actualizarán los campos omitidos. Para reemplazar toda la entidad, utiliza una ruta de acceso con la string “*” para que coincidan todos los campos. Se trata de una lista separada por comas de los nombres de campos completamente calificados. Ejemplo: "user.displayName,photo" .
|
Cuerpo de la solicitud
El cuerpo de la solicitud incluye una instancia de Property
.
Cuerpo de la respuesta
Si se ejecuta de forma correcta, el cuerpo de la respuesta contiene una instancia de Property
.
Permisos de autorización
Requiere el siguiente alcance de OAuth:
https://www.googleapis.com/auth/analytics.edit
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 2025-07-26 (UTC)"],[[["\u003cp\u003eThis method updates a specified Google Analytics 4 property using the provided parameters.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes an HTTP PATCH request to the designated endpoint with property name as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain the updated Property object and a query parameter 'updateMask' specifying the fields to be updated.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful execution results in a response body containing the updated Property object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/analytics.edit\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This outlines how to update a property using a PATCH request to `https://analyticsadmin.googleapis.com/v1beta/{property.name=properties/*}`. The `property.name` path parameter specifies the target property, while the `updateMask` query parameter (using FieldMask format) dictates which fields to modify. The request body contains the updated `Property` details, and a successful response returns the updated `Property`. This operation requires the `analytics.edit` authorization scope.\n"],null,["# Method: properties.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates a property.\n\n### HTTP request\n\n`PATCH https://analyticsadmin.googleapis.com/v1beta/{property.name=properties/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------|\n| `property.name` | `string` Output only. Resource name of this property. Format: properties/{property_id} Example: \"properties/1000\" |\n\n### Query parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"\\*\" to match all fields. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n\n### Request body\n\nThe request body contains an instance of [Property](/analytics/devguides/config/admin/v1/rest/v1beta/properties#Property).\n\n### Response body\n\nIf successful, the response body contains an instance of [Property](/analytics/devguides/config/admin/v1/rest/v1beta/properties#Property).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/analytics.edit`"]]