> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# BulkRejectRequestReview

# Package: cmsCompliance

# Namespace: CmsComplianceService

# Method link: https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/bulk-reject-request-review.md

## Permission Scopes:
Enterprise CMS compliance flow : SCOPE.ENTERPRISE.CMS-COMPLIANCE-MANAGE

## Introduction

Rejects one or more previously submitted compliance review requests.

Rejecting sets each item's `requestReviewStatus` to `REJECTED` and changes nothing else. Whatever an
item's `action` is, its content stays exactly as it is: nothing is published and nothing is
unpublished. Specify `prodCollectionId` and the compliance review requests returned by
[Request Review](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/request-review.md)
or [Bulk Request Review](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/bulk-request-review.md).
All the items belong to the collection specified by `prodCollectionId`.

Every item must still exist in the collection version its action requires. If any item is missing, the
whole call fails with `DATA_ITEMS_NOT_FOUND` and no item is updated.

The status update resolves per item, so individual items can fail while the rest succeed. Read
`statusUpdateResults` for the outcome of each item.

To approve review requests instead, call
[Bulk Approve Request Review](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/bulk-approve-request-review.md).

---

## REST API

### Schema

```
 Method: bulkRejectRequestReview
 Description: Rejects one or more previously submitted compliance review requests.  Rejecting sets each item's `requestReviewStatus` to `REJECTED` and changes nothing else. Whatever an item's `action` is, its content stays exactly as it is: nothing is published and nothing is unpublished. Specify `prodCollectionId` and the compliance review requests returned by [Request Review](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/request-review.md) or [Bulk Request Review](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/bulk-request-review.md). All the items belong to the collection specified by `prodCollectionId`.  Every item must still exist in the collection version its action requires. If any item is missing, the whole call fails with `DATA_ITEMS_NOT_FOUND` and no item is updated.  The status update resolves per item, so individual items can fail while the rest succeed. Read `statusUpdateResults` for the outcome of each item.  To approve review requests instead, call [Bulk Approve Request Review](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/bulk-approve-request-review.md).
 URL: https://www.wixapis.com/cms-compliance/v1/bulk/reject-request-review
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  prodCollectionId, items, items.id, items.action, items.submittedByUserId, items.submittedByAccountId
 Method parameters: 
   param name: items | type: array<items> | description: Compliance review requests to reject, as returned by [Request Review](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/request-review.md) or [Bulk Request Review](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/bulk-request-review.md). Each item's `id` must appear once per call. | required: true | validation: minItems 1, maxItems 100
              - name: id | type: string | description: Compliance review request GUID. Matches the `_id` of the submitted data item. | required: true | read-only: true | validation: format GUID
              - name: action | type: ReviewAction | description: Publishing or unpublishing action the user requested for the data item. | required: true 
                     - enum:
                     -     PUBLISH_DRAFT: Publish an item that currently exists only as a draft.
                     -     PUBLISH_CHANGED: Publish a draft containing changes to an existing published item.
                     -     UNPUBLISH_PUBLISHED: Unpublish an item that has no pending draft changes.
                     -     PUBLISH_PUBLISHED: Submit an already-published item for review without content changes.
                     -     UNPUBLISH_CHANGED: Unpublish an item that also has pending draft changes.
              - name: submittedByUserId | type: string | description: GUID of the user who submitted the action. | required: true | read-only: true | validation: format GUID
              - name: submittedByAccountId | type: string | description: GUID of the account the action was submitted under. | required: true | read-only: true | validation: format GUID
   param name: prodCollectionId | type: prodCollectionId | description: GUID of the published CMS collection every item in the request belongs to. A single call rejects items from a single collection. | required: true | validation: maxLength 256
 Return type: BulkRejectRequestReviewResponse
  - name: complianceReviewRequests | type: array<ComplianceReviewRequest> | description: Rejected compliance review requests, in the same order as the request's `items`. The same objects are emitted in the [Bulk Review Rejected](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/bulk-review-rejected.md) event.  Each one is built from the data items as they stand in CMS at the moment the decision is made, not from the copy sent in the request. Their `requestReviewStatus` is therefore the value the items held before this call; the status this call wrote is in `statusUpdateResults`.  | validation: maxItems 100
     - name: id | type: string | description: Compliance review request GUID. Matches the `_id` of the submitted data item.  | read-only: true | validation: format GUID
     - name: action | type: ReviewAction | description: Publishing or unpublishing action the user requested for the data item.  
         - enum:
         -     PUBLISH_DRAFT: Publish an item that currently exists only as a draft.
         -     PUBLISH_CHANGED: Publish a draft containing changes to an existing published item.
         -     UNPUBLISH_PUBLISHED: Unpublish an item that has no pending draft changes.
         -     PUBLISH_PUBLISHED: Submit an already-published item for review without content changes.
         -     UNPUBLISH_CHANGED: Unpublish an item that also has pending draft changes.
     - name: currentDataItem | type: DataItem | description: Published (live) version of the data item. Returned for every action except `PUBLISH_DRAFT`.  | read-only: true 
        - name: id | type: string | description: Data item GUID.  When an item is inserted into a collection, the item's GUID is automatically assigned a random value. You can optionally provide a custom GUID in `dataItem.id` when inserting the item. If you specify an GUID that already exists in the collection, the insertion will fail.  | validation: maxLength 128, immutable
        - name: dataCollectionId | type: string | description: GUID of the collection this item belongs to.  This is the user-defined collection identifier set when the collection is created (for example, `EvalCustomers`), not a GUID.  | read-only: true | validation: maxLength 256
        - name: data | type: object | description: Data item contents.  Property-value pairs representing the data item's payload. When retrieving a data item, it also includes the following read-only fields:  + `_id`: Item GUID. + `_createdDate`: Date and time the item was added to the collection. + `_updatedDate`: Date and time the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have the same value. + `_owner`: GUID of the user who created the item. Can be modified with site owner permissions.  
     - name: proposedDataItem | type: DataItem | description: Version of the data item proposed by the request. For `PUBLISH_PUBLISHED`, this is the same published item as `current_data_item`. Absent only for `UNPUBLISH_PUBLISHED`.  | read-only: true 
     - name: submittedAt | type: string | description: Date and time the action was submitted.  | read-only: true | validation: format date-time
     - name: submittedByUserId | type: string | description: GUID of the user who submitted the action.  | read-only: true | validation: format GUID
     - name: submittedByAccountId | type: string | description: GUID of the account the action was submitted under.  | read-only: true | validation: format GUID
     - name: versionOnUnpublish | type: VersionOnUnpublish | description: Version to preserve as a draft after a changed item is unpublished. Returned only for `UNPUBLISH_CHANGED` when the caller provides a meaningful value.  | read-only: true 
         - enum:
         -     KEEP_LATEST_DRAFT_VERSION: Preserve the item's latest draft edits.
         -     KEEP_LIVE_PUBLISHED_VERSION: Preserve the item's current live version.
  - name: statusUpdateResults | type: array<BulkUpdateDataItemsResponse> | description: Results of setting `requestReviewStatus` to `REJECTED`. Rejecting never publishes or unpublishes, so the status is always set in a single update, and this always holds exactly 1 entry however many items the request carried. Within that entry, `results` holds 1 entry per item, whose `itemMetadata` reports whether the status was set and whose `itemMetadata.originalIndex` is the item's position in the request's `items` array.  | validation: maxItems 2
     - name: results | type: array<BulkDataItemResult> | description: Information about the updated items.  
        - name: action | type: BulkActionType | description: Action attempted for the data item.  
             - enum: UNKNOWN_ACTION_TYPE, INSERT, UPDATE, DELETE, PATCH
        - name: itemMetadata | type: ItemMetadata | description: Item metadata.  
           - name: id | type: string | description: Item GUID. Does not appear if the item GUID is missing. For example, when item creation fails.  | validation: maxLength 128
           - name: originalIndex | type: integer | description: Original index of the item in the array specified in the request. Use this to match items in the request with those in the response.  
           - name: success | type: boolean | description: Whether the requested action was successful. When `false`, the `error` field is populated.  
           - name: error | type: ApplicationError | description: In case of failure, the error details.  
              - name: code | type: string | description: Error code.  
              - name: description | type: string | description: Description of the error.  
              - name: data | type: object | description: Data related to the error.  
        - name: dataItem | type: DataItem | description: Updated data item.  Returned if `returnEntity` is set to `true` and the action is successful.  
     - name: bulkActionMetadata | type: BulkActionMetadata | description: Bulk action metadata.  
        - name: totalSuccesses | type: integer | description: Number of items successfully processed.  
        - name: totalFailures | type: integer | description: Number of items that couldn't be processed.  
  - name: publishResult | type: BulkPublishDataItemDraftsResponse | description: Results of the CMS writes the status update required, with 1 entry per item affected.  Returned only when the request included items that were live with no pending draft, and only for those of them whose status was set successfully. Rejecting never publishes or unpublishes content: these items are left in the published state they were already in, so this result doesn't report a change to whether an item is published.  
     - name: results | type: array<BulkPublishDataItemDraftResult> | description: Per-item results, in the same order as `dataItemIds` in the request. Each entry includes success or error details and, when `returnEntity` is `true`, the published item.  
        - name: itemMetadata | type: ItemMetadata | description: Per-item success or failure details. Use `originalIndex` to match this result to an GUID in the request's `dataItemIds` array.  
        - name: dataItem | type: DataItem | description: Published data item.  Returned only when `returnEntity` is `true` and this item was published successfully.  
     - name: bulkActionMetadata | type: BulkActionMetadata | description: Total numbers of items that succeeded and failed.  

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: DUPLICATE_ITEM_ID | Description: The same item id appears more than once in `items`. Each id may only be submitted once per call.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: INVALID_ACTION | Description: An item's `action` is missing or isn't a recognized review action.
   HTTP Code: 401 | Status Code: UNAUTHENTICATED | Application Code: MISSING_IDENTITY | Description: The request identity doesn't include the required account GUID.
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: DATA_ITEMS_NOT_FOUND | Description: Couldn't find one or more of the data items in the collection version their `action` requires. The whole call fails and nothing is changed.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: CMS_METASITE_NOT_RESOLVED | Description: Couldn't resolve the account's CMS metasite. Exactly one `ACCOUNT_MASTER_CMS` metasite must exist for the account.


```

### Examples

### Reject a batch of review requests
Rejects 2 review requests from the same collection, one PUBLISH_CHANGED and one UNPUBLISH_PUBLISHED. Neither item's content changes.

```curl
curl -X POST \
'https://www.wixapis.com/cms-compliance/v1/bulk/reject-request-review' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "prodCollectionId": "Announcements",
  "items": [
    {
      "id": "7c2d4e81-f093-4a57-b614-5e8d9a02c3f7",
      "action": "PUBLISH_CHANGED",
      "submittedAt": "2024-01-15T10:30:00.000Z",
      "submittedByUserId": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
      "submittedByAccountId": "4f907f5d-bb05-4d99-90a4-7f55d34e9fe8"
    },
    {
      "id": "e5b916a3-48d7-4c20-9f81-3a6c07be5d29",
      "action": "UNPUBLISH_PUBLISHED",
      "submittedAt": "2024-01-15T10:30:00.000Z",
      "submittedByUserId": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
      "submittedByAccountId": "4f907f5d-bb05-4d99-90a4-7f55d34e9fe8"
    }
  ]
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.enterpriseCmsCompliance.enterpriseCmsCompliance.bulkRejectRequestReview(prodCollectionId, options)
 Description: Rejects one or more previously submitted compliance review requests.  Rejecting sets each item's `requestReviewStatus` to `REJECTED` and changes nothing else. Whatever an item's `action` is, its content stays exactly as it is: nothing is published and nothing is unpublished. Specify `prodCollectionId` and the compliance review requests returned by [Request Review](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/request-review.md) or [Bulk Request Review](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/bulk-request-review.md). All the items belong to the collection specified by `prodCollectionId`.  Every item must still exist in the collection version its action requires. If any item is missing, the whole call fails with `DATA_ITEMS_NOT_FOUND` and no item is updated.  The status update resolves per item, so individual items can fail while the rest succeed. Read `statusUpdateResults` for the outcome of each item.  To approve review requests instead, call [Bulk Approve Request Review](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/bulk-approve-request-review.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  prodCollectionId, options.items, options.items._id, options.items.action, options.items.submittedByUserId, options.items.submittedByAccountId, options
 Method parameters: 
   param name: options | type: BulkRejectRequestReviewOptions  none | required: true 
        - name: items | type: array<ComplianceReviewRequest> | description: Compliance review requests to reject, as returned by [Request Review](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/request-review.md) or [Bulk Request Review](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/bulk-request-review.md). Each item's `id` must appear once per call. | required: true | validation: minItems 1, maxItems 100
           - name: action | type: ReviewAction | description: Publishing or unpublishing action the user requested for the data item.  
                 - enum:
                 -     PUBLISH_DRAFT: Publish an item that currently exists only as a draft.
                 -     PUBLISH_CHANGED: Publish a draft containing changes to an existing published item.
                 -     UNPUBLISH_PUBLISHED: Unpublish an item that has no pending draft changes.
                 -     PUBLISH_PUBLISHED: Submit an already-published item for review without content changes.
                 -     UNPUBLISH_CHANGED: Unpublish an item that also has pending draft changes.
   param name: prodCollectionId | type: string | description: GUID of the published CMS collection every item in the request belongs to. A single call rejects items from a single collection. | required: true | validation: maxLength 256
 Return type: PROMISE<BulkRejectRequestReviewResponse>
  - name: complianceReviewRequests | type: array<ComplianceReviewRequest> | description: Rejected compliance review requests, in the same order as the request's `items`. The same objects are emitted in the [Bulk Review Rejected](https://dev.wix.com/docs/api-reference/account-level/enterprise/cms-compliance/compliance-review-request-v1/bulk-review-rejected.md) event.  Each one is built from the data items as they stand in CMS at the moment the decision is made, not from the copy sent in the request. Their `requestReviewStatus` is therefore the value the items held before this call; the status this call wrote is in `statusUpdateResults`.  | validation: maxItems 100
     - name: _id | type: string | description: Compliance review request GUID. Matches the `_id` of the submitted data item.  | read-only: true | validation: format GUID
     - name: action | type: ReviewAction | description: Publishing or unpublishing action the user requested for the data item.  
         - enum:
         -     PUBLISH_DRAFT: Publish an item that currently exists only as a draft.
         -     PUBLISH_CHANGED: Publish a draft containing changes to an existing published item.
         -     UNPUBLISH_PUBLISHED: Unpublish an item that has no pending draft changes.
         -     PUBLISH_PUBLISHED: Submit an already-published item for review without content changes.
         -     UNPUBLISH_CHANGED: Unpublish an item that also has pending draft changes.
     - name: currentDataItem | type: DataItem | description: Published (live) version of the data item. Returned for every action except `PUBLISH_DRAFT`.  | read-only: true 
        - name: _id | type: string | description: Data item GUID.  When an item is inserted into a collection, the item's GUID is automatically assigned a random value. You can optionally provide a custom GUID in `dataItem.id` when inserting the item. If you specify an GUID that already exists in the collection, the insertion will fail.  | validation: maxLength 128, immutable
        - name: dataCollectionId | type: string | description: GUID of the collection this item belongs to.  This is the user-defined collection identifier set when the collection is created (for example, `EvalCustomers`), not a GUID.  | read-only: true | validation: maxLength 256
        - name: data | type: object | description: Data item contents.  Property-value pairs representing the data item's payload. When retrieving a data item, it also includes the following read-only fields:  + `_id`: Item GUID. + `_createdDate`: Date and time the item was added to the collection. + `_updatedDate`: Date and time the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have the same value. + `_owner`: GUID of the user who created the item. Can be modified with site owner permissions.  
     - name: proposedDataItem | type: DataItem | description: Version of the data item proposed by the request. For `PUBLISH_PUBLISHED`, this is the same published item as `current_data_item`. Absent only for `UNPUBLISH_PUBLISHED`.  | read-only: true 
     - name: submittedAt | type: Date | description: Date and time the action was submitted.  | read-only: true 
     - name: submittedByUserId | type: string | description: GUID of the user who submitted the action.  | read-only: true | validation: format GUID
     - name: submittedByAccountId | type: string | description: GUID of the account the action was submitted under.  | read-only: true | validation: format GUID
     - name: versionOnUnpublish | type: VersionOnUnpublish | description: Version to preserve as a draft after a changed item is unpublished. Returned only for `UNPUBLISH_CHANGED` when the caller provides a meaningful value.  | read-only: true 
         - enum:
         -     KEEP_LATEST_DRAFT_VERSION: Preserve the item's latest draft edits.
         -     KEEP_LIVE_PUBLISHED_VERSION: Preserve the item's current live version.
  - name: statusUpdateResults | type: array<BulkUpdateDataItemsResponse> | description: Results of setting `requestReviewStatus` to `REJECTED`. Rejecting never publishes or unpublishes, so the status is always set in a single update, and this always holds exactly 1 entry however many items the request carried. Within that entry, `results` holds 1 entry per item, whose `itemMetadata` reports whether the status was set and whose `itemMetadata.originalIndex` is the item's position in the request's `items` array.  | validation: maxItems 2
     - name: results | type: array<BulkDataItemResult> | description: Information about the updated items.  
        - name: action | type: BulkActionType | description: Action attempted for the data item.  
             - enum: UNKNOWN_ACTION_TYPE, INSERT, UPDATE, DELETE, PATCH
        - name: itemMetadata | type: ItemMetadata | description: Item metadata.  
           - name: _id | type: string | description: Item GUID. Does not appear if the item GUID is missing. For example, when item creation fails.  | validation: maxLength 128
           - name: originalIndex | type: integer | description: Original index of the item in the array specified in the request. Use this to match items in the request with those in the response.  
           - name: success | type: boolean | description: Whether the requested action was successful. When `false`, the `error` field is populated.  
           - name: error | type: ApplicationError | description: In case of failure, the error details.  
              - name: code | type: string | description: Error code.  
              - name: description | type: string | description: Description of the error.  
              - name: data | type: object | description: Data related to the error.  
        - name: dataItem | type: DataItem | description: Updated data item.  Returned if `returnEntity` is set to `true` and the action is successful.  
     - name: bulkActionMetadata | type: BulkActionMetadata | description: Bulk action metadata.  
        - name: totalSuccesses | type: integer | description: Number of items successfully processed.  
        - name: totalFailures | type: integer | description: Number of items that couldn't be processed.  
  - name: publishResult | type: BulkPublishDataItemDraftsResponse | description: Results of the CMS writes the status update required, with 1 entry per item affected.  Returned only when the request included items that were live with no pending draft, and only for those of them whose status was set successfully. Rejecting never publishes or unpublishes content: these items are left in the published state they were already in, so this result doesn't report a change to whether an item is published.  
     - name: results | type: array<BulkPublishDataItemDraftResult> | description: Per-item results, in the same order as `dataItemIds` in the request. Each entry includes success or error details and, when `returnEntity` is `true`, the published item.  
        - name: itemMetadata | type: ItemMetadata | description: Per-item success or failure details. Use `originalIndex` to match this result to an GUID in the request's `dataItemIds` array.  
        - name: dataItem | type: DataItem | description: Published data item.  Returned only when `returnEntity` is `true` and this item was published successfully.  
     - name: bulkActionMetadata | type: BulkActionMetadata | description: Total numbers of items that succeeded and failed.  

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: DUPLICATE_ITEM_ID | Description: The same item id appears more than once in `items`. Each id may only be submitted once per call.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: INVALID_ACTION | Description: An item's `action` is missing or isn't a recognized review action.
   HTTP Code: 401 | Status Code: UNAUTHENTICATED | Application Code: MISSING_IDENTITY | Description: The request identity doesn't include the required account GUID.
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: DATA_ITEMS_NOT_FOUND | Description: Couldn't find one or more of the data items in the collection version their `action` requires. The whole call fails and nothing is changed.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: CMS_METASITE_NOT_RESOLVED | Description: Couldn't resolve the account's CMS metasite. Exactly one `ACCOUNT_MASTER_CMS` metasite must exist for the account.


```

### Examples

### Reject a batch of review requests
Rejects 2 review requests from the same collection, one PUBLISH_CHANGED and one UNPUBLISH_PUBLISHED. Neither item's content changes.

```javascript
import { enterpriseCmsCompliance } from "@wix/enterprise-cms-compliance";

async function bulkRejectRequestReview() {
  const response = await enterpriseCmsCompliance.bulkRejectRequestReview(
    "Announcements",
    {
      items: [
        {
          _id: "7c2d4e81-f093-4a57-b614-5e8d9a02c3f7",
          action: "PUBLISH_CHANGED",
          submittedAt: new Date("2024-01-15T10:30:00.000Z"),
          submittedByUserId: "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
          submittedByAccountId: "4f907f5d-bb05-4d99-90a4-7f55d34e9fe8",
        },
        {
          _id: "e5b916a3-48d7-4c20-9f81-3a6c07be5d29",
          action: "UNPUBLISH_PUBLISHED",
          submittedAt: new Date("2024-01-15T10:30:00.000Z"),
          submittedByUserId: "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
          submittedByAccountId: "4f907f5d-bb05-4d99-90a4-7f55d34e9fe8",
        },
      ],
    },
  );
}

/* Promise resolves to:
 * {
 *   "complianceReviewRequests": [
 *     {
 *       "_id": "7c2d4e81-f093-4a57-b614-5e8d9a02c3f7",
 *       "action": "PUBLISH_CHANGED",
 *       "currentDataItem": {
 *         "_id": "7c2d4e81-f093-4a57-b614-5e8d9a02c3f7",
 *         "dataCollectionId": "Announcements",
 *         "data": {
 *           "_id": "7c2d4e81-f093-4a57-b614-5e8d9a02c3f7",
 *           "_createdDate": "2024-01-14T09:12:19.593Z",
 *           "_updatedDate": "2024-01-14T09:12:19.593Z",
 *           "status": "published",
 *           "title": "Fee schedule"
 *         }
 *       },
 *       "proposedDataItem": {
 *         "_id": "7c2d4e81-f093-4a57-b614-5e8d9a02c3f7",
 *         "dataCollectionId": "Announcements__drafts",
 *         "data": {
 *           "_id": "7c2d4e81-f093-4a57-b614-5e8d9a02c3f7",
 *           "_createdDate": "2024-01-15T10:24:24.136Z",
 *           "_updatedDate": "2024-01-15T10:24:24.136Z",
 *           "status": "draft",
 *           "title": "Fee schedule (revised)"
 *         }
 *       },
 *       "submittedAt": "2024-01-15T10:30:00Z",
 *       "submittedByUserId": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
 *       "submittedByAccountId": "4f907f5d-bb05-4d99-90a4-7f55d34e9fe8",
 *       "versionOnUnpublish": "UNKNOWN_VERSION_ON_UNPUBLISH"
 *     },
 *     {
 *       "_id": "e5b916a3-48d7-4c20-9f81-3a6c07be5d29",
 *       "action": "UNPUBLISH_PUBLISHED",
 *       "currentDataItem": {
 *         "_id": "e5b916a3-48d7-4c20-9f81-3a6c07be5d29",
 *         "dataCollectionId": "Announcements",
 *         "data": {
 *           "_id": "e5b916a3-48d7-4c20-9f81-3a6c07be5d29",
 *           "_createdDate": "2024-01-14T09:12:19.592Z",
 *           "_updatedDate": "2024-01-14T09:12:19.592Z",
 *           "status": "published",
 *           "title": "Quarterly holdings report"
 *         }
 *       },
 *       "submittedAt": "2024-01-15T10:30:00Z",
 *       "submittedByUserId": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
 *       "submittedByAccountId": "4f907f5d-bb05-4d99-90a4-7f55d34e9fe8",
 *       "versionOnUnpublish": "UNKNOWN_VERSION_ON_UNPUBLISH"
 *     }
 *   ],
 *   "statusUpdateResults": [
 *     {
 *       "results": [
 *         {
 *           "action": "UPDATE",
 *           "itemMetadata": {
 *             "_id": "7c2d4e81-f093-4a57-b614-5e8d9a02c3f7",
 *             "originalIndex": 0,
 *             "success": true
 *           },
 *           "dataItem": {
 *             "_id": "7c2d4e81-f093-4a57-b614-5e8d9a02c3f7",
 *             "dataCollectionId": "Announcements__drafts",
 *             "data": {
 *               "_id": "7c2d4e81-f093-4a57-b614-5e8d9a02c3f7",
 *               "_createdDate": "2024-01-15T10:24:24.136Z",
 *               "_updatedDate": "2024-01-15T10:30:33.381Z",
 *               "status": "draft",
 *               "title": "Fee schedule (revised)",
 *               "requestReviewStatus": "REJECTED"
 *             }
 *           }
 *         },
 *         {
 *           "action": "UPDATE",
 *           "itemMetadata": {
 *             "_id": "e5b916a3-48d7-4c20-9f81-3a6c07be5d29",
 *             "originalIndex": 1,
 *             "success": true
 *           },
 *           "dataItem": {
 *             "_id": "e5b916a3-48d7-4c20-9f81-3a6c07be5d29",
 *             "dataCollectionId": "Announcements__drafts",
 *             "data": {
 *               "_id": "e5b916a3-48d7-4c20-9f81-3a6c07be5d29",
 *               "_createdDate": "2024-01-15T10:30:33.225Z",
 *               "_updatedDate": "2024-01-15T10:30:33.381Z",
 *               "status": "published",
 *               "title": "Quarterly holdings report",
 *               "requestReviewStatus": "REJECTED"
 *             }
 *           }
 *         }
 *       ],
 *       "bulkActionMetadata": {
 *         "totalSuccesses": 2,
 *         "totalFailures": 0
 *       }
 *     }
 *   ],
 *   "publishResult": {
 *     "results": [
 *       {
 *         "itemMetadata": {
 *           "_id": "e5b916a3-48d7-4c20-9f81-3a6c07be5d29",
 *           "originalIndex": 1,
 *           "success": true
 *         }
 *       }
 *     ],
 *     "bulkActionMetadata": {
 *       "totalSuccesses": 1,
 *       "totalFailures": 0
 *     }
 *   }
 * }
 */

```

### bulkRejectRequestReview (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { enterpriseCmsCompliance } from '@wix/enterprise-cms-compliance';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { enterpriseCmsCompliance },
  // Include the auth strategy and host as relevant
});


async function bulkRejectRequestReview(prodCollectionId,options) {
  const response = await myWixClient.enterpriseCmsCompliance.bulkRejectRequestReview(prodCollectionId,options);
};
```

---