---
title: "Edit Sites"
method: POST
path: "/restapi/v1.0/account/{accountId}/sites/{siteId}/bulk-assign"
tags: ["Multi-Site"]
---

# Edit Sites

`POST /restapi/v1.0/account/{accountId}/sites/{siteId}/bulk-assign`

## Request

- Base URL: `https://platform.ringcentral.com`
- URL: `https://platform.ringcentral.com/restapi/v1.0/account/{accountId}/sites/{siteId}/bulk-assign`
- Auth: OAuth 2
  - Authorization code: `https://platform.ringcentral.com/restapi/oauth/authorize`
  - Token URL: `https://platform.ringcentral.com/restapi/oauth/token`
- TypeScript: <https://skmtc.dev/ringcentral/apis/ringcentral-api/docs/restapi/v1.0/account/:accountId/sites/:siteId/bulk-assign/post.ts> (a function with typed inputs; its response is checked against the schema)

Assigns multiple sites to an account specified in path.

## Path parameters

- `accountId` string, required
- `siteId` string, required

## Request body

- SiteMembersBulkUpdate
  - `removedExtensionIds` string[]: List of removed extensions
  - `addedExtensionIds` string[]: List of added extensions

## Response `204`

No Content

---

[API](https://skmtc.dev/ringcentral/apis/ringcentral-api.md) - [All operations](https://skmtc.dev/ringcentral/apis/ringcentral-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ringcentral/apis/ringcentral-api/revisions/8d602198ec97?raw)
