---
title: "POST /v4/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources:bulkEdit"
method: POST
path: "/v4/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources:bulkEdit"
tags: ["inventorySourceGroups"]
---

# POST /v4/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources:bulkEdit

`POST /v4/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources:bulkEdit`

## Request

- Base URL: `https://displayvideo.googleapis.com`
- URL: `https://displayvideo.googleapis.com/v4/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources:bulkEdit`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/display-video`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/display-video`

Bulk edits multiple assignments between inventory sources and a single inventory source group. The operation will delete the assigned inventory sources provided in BulkEditAssignedInventorySourcesRequest.deleted_assigned_inventory_sources and then create the assigned inventory sources provided in BulkEditAssignedInventorySourcesRequest.created_assigned_inventory_sources.

## Path parameters

- `inventorySourceGroupsId` 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

## Request body

- BulkEditAssignedInventorySourcesRequest: Request message for AssignedInventorySourceService.BulkEdit.
  - `advertiserId` string, int64: The ID of the advertiser that owns the parent inventory source group. The parent partner does not have access to these assigned inventory sources.
  - `createdAssignedInventorySources` AssignedInventorySource[]: The assigned inventory sources to create in bulk, specified as a list of AssignedInventorySources.
    - `assignedInventorySourceId` string, int64: Output only. The unique ID of the assigned inventory source. The ID is only unique within a given inventory source group. It may be reused in other contexts.
    - `inventorySourceId` string: Required. The ID of the inventory source entity being targeted.
    - `name` string: Output only. The resource name of the assigned inventory source.
  - `deletedAssignedInventorySources` string[]: The IDs of the assigned inventory sources to delete in bulk, specified as a list of assigned_inventory_source_ids.
  - `partnerId` string, int64: The ID of the partner that owns the inventory source group. Only this partner has write access to these assigned inventory sources.

## Response `200`

Successful response

- BulkEditAssignedInventorySourcesResponse: Response message for AssignedInventorySourceService.BulkEdit.
  - `assignedInventorySources` AssignedInventorySource[]: The list of assigned inventory sources that have been successfully created. This list will be absent if empty.
    - `assignedInventorySourceId` string, int64: Output only. The unique ID of the assigned inventory source. The ID is only unique within a given inventory source group. It may be reused in other contexts.
    - `inventorySourceId` string: Required. The ID of the inventory source entity being targeted.
    - `name` string: Output only. The resource name of the assigned inventory source.

---

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