---
title: "POST /v4/inventorySources/{inventorySourcesId}:editInventorySourceReadWriteAccessors"
method: POST
path: "/v4/inventorySources/{inventorySourcesId}:editInventorySourceReadWriteAccessors"
tags: ["inventorySources"]
---

# POST /v4/inventorySources/{inventorySourcesId}:editInventorySourceReadWriteAccessors

`POST /v4/inventorySources/{inventorySourcesId}:editInventorySourceReadWriteAccessors`

## Request

- Base URL: `https://displayvideo.googleapis.com`
- URL: `https://displayvideo.googleapis.com/v4/inventorySources/{inventorySourcesId}:editInventorySourceReadWriteAccessors`
- 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`

Edits read/write accessors of an inventory source. Returns the updated read_write_accessors for the inventory source.

## Path parameters

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

- EditInventorySourceReadWriteAccessorsRequest: Request message for InventorySourceService.EditInventorySourceReadWriteAccessors.
  - `advertisersUpdate` EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate: Update to the list of advertisers with read/write access to the inventory source.
    - `addedAdvertisers` string[]: The advertisers to add.
    - `removedAdvertisers` string[]: The advertisers to remove.
  - `assignPartner` boolean: Set the partner context as read/write accessor of the inventory source. This will remove all other current read/write advertiser accessors.
  - `partnerId` string, int64: Required. The partner context by which the accessors change is being made.

## Response `200`

Successful response

- InventorySourceAccessors: The partner or advertisers with access to the inventory source.
  - `advertisers` InventorySourceAccessorsAdvertiserAccessors: The advertisers with access to the inventory source.
    - `advertiserIds` string[]: The IDs of the advertisers.
  - `partner` InventorySourceAccessorsPartnerAccessor: The partner with access to the inventory source.
    - `partnerId` string, int64: The ID of the partner.

---

[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)
