---
title: "Update asset groups."
method: PATCH
path: "/businesses/{business_id}/asset_groups"
tags: ["business_access_assets"]
---

# Update asset groups.

`PATCH /businesses/{business_id}/asset_groups`

Update a batch of asset groups with the specified parameters.

## Path parameters

- `business_id` string, required

## Request body

- AssetGroupModificationReadOrUpdate
  - `asset_groups_to_update` AssetGroupUpdateItemReadOrUpdateItem[] — A list of asset groups and the data that will be used to update them.
    - `asset_group_id` string, required — Unique identifier of the asset group to update.
    - `asset_group_types` AssetGroupType[] — Asset Group Types. Note: The asset group types are used for user reference and categorization purposes only and do not impact the functionality of the asset group.
    - `assets_to_add` string[] — A list of asset ids to add to the asset group.
    - `assets_to_remove` string[] — A list of asset ids to remove from the asset group.
    - `description` string — Asset group description.
    - `name` string — Asset Group name.
  - `exceptions` AssetGroupUpdateError[] — A list of errors associated with the asset groups. Will be returned if there is an error.
    - `asset_group_id` string
    - `code` integer
    - `message` string
  - `updated_asset_groups` AssetGroupBinding[] — A list of successfully edited asset groups.
    - `ad_accounts_ids` AssetGroupBindingAdAccountsIdsItems[], required — A list of ad account IDs under the asset group
    - `asset_group_description` string, nullable, required — Asset group description
    - `asset_group_name` string, nullable, required — Asset Group name
    - `asset_group_types` string[], required — Asset group types
    - `catalogs_ids` AssetGroupBindingCatalogsIdsItems[], required — A list of catalog IDs under asset group
    - `created_by` BusinessAccessUserSummary, required — Metadata of the member/partner that has access to the asset.
      - `email` string, nullable — Email of the business member/partner.
      - `id` string, nullable — Unique identifier of the business member/partner.
      - `username` string, nullable — Username of the business member/partner.
    - `created_time` integer, nullable, required — The creation time of the asset group
    - `id` string, required — Asset Group ID.
    - `owner` BusinessAccessUserSummary, required — Metadata of the member/partner that has access to the asset.
      - `email` string, nullable — Email of the business member/partner.
      - `id` string, nullable — Unique identifier of the business member/partner.
      - `username` string, nullable — Username of the business member/partner.
    - `profiles_ids` AssetGroupBindingProfilesIdsItems[], required — A list of profile IDs under asset group
    - `updated_time` integer, nullable, required — The last update time of the asset group

## Response `200`

The request has succeeded.

- AssetGroupModification
  - `exceptions` AssetGroupUpdateError[] — A list of errors associated with the asset groups. Will be returned if there is an error.
    - `asset_group_id` string
    - `code` integer
    - `message` string
  - `updated_asset_groups` AssetGroupBinding[] — A list of successfully edited asset groups.
    - `ad_accounts_ids` AssetGroupBindingAdAccountsIdsItems[], required — A list of ad account IDs under the asset group
    - `asset_group_description` string, nullable, required — Asset group description
    - `asset_group_name` string, nullable, required — Asset Group name
    - `asset_group_types` string[], required — Asset group types
    - `catalogs_ids` AssetGroupBindingCatalogsIdsItems[], required — A list of catalog IDs under asset group
    - `created_by` BusinessAccessUserSummary, required — Metadata of the member/partner that has access to the asset.
      - `email` string, nullable — Email of the business member/partner.
      - `id` string, nullable — Unique identifier of the business member/partner.
      - `username` string, nullable — Username of the business member/partner.
    - `created_time` integer, nullable, required — The creation time of the asset group
    - `id` string, required — Asset Group ID.
    - `owner` BusinessAccessUserSummary, required — Metadata of the member/partner that has access to the asset.
      - `email` string, nullable — Email of the business member/partner.
      - `id` string, nullable — Unique identifier of the business member/partner.
      - `username` string, nullable — Username of the business member/partner.
    - `profiles_ids` AssetGroupBindingProfilesIdsItems[], required — A list of profile IDs under asset group
    - `updated_time` integer, nullable, required — The last update time of the asset group

## Other responses

- `400` — The request could not be understood by the server due to unexpected data.
- `401` — Authentication is required and has either failed or not been provided.
- `403` — The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource.
- `404` — The requested resource could not be found on this server.
- `429` — The user has sent too many requests in a given amount of time and is being rate limited.
- `default` — An unexpected error response.

---

[API](https://skmtc.net/pinterest/apis/pinterest-rest-api.md) · [All operations](https://skmtc.net/pinterest/apis/pinterest-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pinterest/pinterest-rest-api/revisions/b698c180678a/schema)
