---
title: "POST /providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collectionsToSubscriptionsMapping"
method: POST
path: "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collectionsToSubscriptionsMapping"
tags: ["PrivateStores"]
---

# POST /providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collectionsToSubscriptionsMapping

`POST /providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collectionsToSubscriptionsMapping`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collectionsToSubscriptionsMapping`
- Auth: none declared

For a given subscriptions list, the API will return a map of collections and the related subscriptions from the supplied list.

## Path parameters

- `privateStoreId` string, required

## Query parameters

- `api-version` string, required

## Request body

- CollectionsToSubscriptionsMappingPayload: The subscriptions list to get the related collections
  - `properties` CollectionsToSubscriptionsMappingProperties: The subscriptions list to get the related collections
    - `subscriptionIds` string[]: Subscriptions ids list

## Response `200`

OK

- CollectionsToSubscriptionsMappingResponse: A map of collections subscriptions details
  - `details` CollectionsToSubscriptionsMappingResponseProperties: Collections - subscriptions mapping details, map key is collectionId. In case subscriptions list is null or empty: no subscription from the list is related to that collection.

## Other responses

- `default`: Microsoft.Marketplace error response describing why the operation failed.

## Changes

- **2026-07-13** (2020-01-01) `664e71f176b6`: 1 breaking
  - added the new path request parameter `privateStoreId`
- **2026-07-13** (2020-01-01) `a5f22236a1cf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/azure/apis/marketplace-microsoft-marketplace-marketplace/changes/providers/Microsoft.Marketplace/privateStores/:privateStoreId/collectionsToSubscriptionsMapping/post.md)

---

[API](https://skmtc.dev/azure/apis/marketplace-microsoft-marketplace-marketplace.md) - [All operations](https://skmtc.dev/azure/apis/marketplace-microsoft-marketplace-marketplace/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/marketplace-microsoft-marketplace-marketplace/revisions/37c9205efbf0?raw)
