---
title: "PATCH /v1beta/accounts/{accountsId}"
method: PATCH
path: "/v1beta/accounts/{accountsId}"
tags: ["accounts"]
---

# PATCH /v1beta/accounts/{accountsId}

`PATCH /v1beta/accounts/{accountsId}`

## Request

- Base URL: `https://analyticsadmin.googleapis.com`
- URL: `https://analyticsadmin.googleapis.com/v1beta/accounts/{accountsId}`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/analytics.edit`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/analytics.edit`

Updates an account.

## Path parameters

- `accountsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `updateMask` string, google-fieldmask

## Request body

- GoogleAnalyticsAdminV1betaAccount: A resource message representing a Google Analytics account.
  - `createTime` string, google-datetime: Output only. Time when this account was originally created.
  - `deleted` boolean: Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.
  - `displayName` string: Required. Human-readable display name for this account.
  - `gmpOrganization` string: Output only. The URI for a Google Marketing Platform organization resource. Only set when this account is connected to a GMP organization. Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
  - `name` string: Identifier. Resource name of this account. Format: accounts/{account} Example: "accounts/100"
  - `regionCode` string: Country of business. Must be a Unicode CLDR region code.
  - `updateTime` string, google-datetime: Output only. Time when account payload fields were last updated.

## Response `200`

Successful response

- GoogleAnalyticsAdminV1betaAccount: A resource message representing a Google Analytics account.
  - `createTime` string, google-datetime: Output only. Time when this account was originally created.
  - `deleted` boolean: Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.
  - `displayName` string: Required. Human-readable display name for this account.
  - `gmpOrganization` string: Output only. The URI for a Google Marketing Platform organization resource. Only set when this account is connected to a GMP organization. Format: marketingplatformadmin.googleapis.com/organizations/{org_id}
  - `name` string: Identifier. Resource name of this account. Format: accounts/{account} Example: "accounts/100"
  - `regionCode` string: Country of business. Must be a Unicode CLDR region code.
  - `updateTime` string, google-datetime: Output only. Time when account payload fields were last updated.

---

[API](https://skmtc.dev/google/apis/analyticsadmin.md) - [All operations](https://skmtc.dev/google/apis/analyticsadmin/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/analyticsadmin/revisions/2f06698abda1?raw)
