analyticsadmin.accounts.patch
Updates a Google Analytics Admin account by patching specified fields via updateMask and returns the updated account as JSON. Use it to modify account details such as display name or region code.
Instructions
Updates an account [HTTP PATCH] — updates the resource; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON GoogleAnalyticsAdminV1betaAccount object accepting createTime, deleted, displayName, gmpOrganization, name, regionCode, updateTime; pass it via params or whole via body_file Siblings over the same resource: delete, get, getDataSharingSettings, list, provisionAccountTicket, runAccessReport, searchChangeHistoryEvents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | [URL path segment] Identifier. Resource name of this account. Format: accounts/{account} Example: "accounts/100" | |
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON GoogleAnalyticsAdminV1betaAccount object. | |
| updateMask | No | [query parameter] Required. The list of fields to be updated. Field names must be in snake case (for example, "field_to_update"). Omitted fields will not be updated. To replace t | |
| request_body | No | Request body of type GoogleAnalyticsAdminV1betaAccount: pass it via `params` (merged into the built body) or whole via `body_file`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| deleted | No | ||
| createTime | No | ||
| regionCode | No | ||
| updateTime | No | ||
| displayName | No | ||
| gmpOrganization | No |