---
title: "PATCH /userprofiles/{+profileId}/subaccounts"
method: PATCH
path: "/userprofiles/{+profileId}/subaccounts"
tags: ["subaccounts"]
---

# PATCH /userprofiles/{+profileId}/subaccounts

`PATCH /userprofiles/{+profileId}/subaccounts`

Updates an existing subaccount. This method supports patch semantics.

## Path parameters

- `profileId` string, required

## Query parameters

- `id` string, required

## Request body

- Subaccount — Contains properties of a Campaign Manager subaccount.
  - `availablePermissionIds` string[] — IDs of the available user role permissions for this subaccount.
  - `kind` string — Identifies what kind of resource this is. Value: the fixed string "dfareporting#subaccount".
  - `name` string — Name of this subaccount. This is a required field. Must be less than 128 characters long and be unique among subaccounts of the same account.
  - `id` string, int64 — ID of this subaccount. This is a read-only, auto-generated field.
  - `accountId` string, int64 — ID of the account that contains this subaccount. This is a read-only field that can be left blank.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/dfareporting.md) · [All operations](https://skmtc.net/google/apis/dfareporting/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/dfareporting/revisions/8163d57aeb31/schema)
