---
title: "POST /v0.1/apps/{owner_name}/{app_name}/distribution_stores"
method: POST
path: "/v0.1/apps/{owner_name}/{app_name}/distribution_stores"
tags: ["distribute"]
---

# POST /v0.1/apps/{owner_name}/{app_name}/distribution_stores

`POST /v0.1/apps/{owner_name}/{app_name}/distribution_stores`

Create a new external store for the specified application.

## Path parameters

- `owner_name` string, required
- `app_name` string, required

## Request body

- object — ExternalStoreRequest
  - `type` 'googleplay' | 'apple' | 'intune' — store Type
  - `name` string — name of the store. In case of googleplay, and Apple store this is fixed to Production.
  - `track` 'production' | 'alpha' | 'beta' | 'testflight-internal' | 'testflight-external' — track of the store. Can be production, alpha & beta for googleplay. Can be production, testflight-internal & testflight-external for Apple Store.
  - `intune_details` object
    - `secret_json` object
      - `id_token` string — the id token of user
      - `refresh_token` string — the refresh token for user
      - `refresh_token_expiry` string — the expiry of refresh token
    - `target_audience` object
      - `name` string — display name for the target audience/group
    - `app_category` object
      - `name` string — display name for the app category
    - `tenant_id` string — tenant id of the intune store
  - `service_connection_id` string — Id for the shared service connection. In case of Apple AppStore, this connection will be used to create and connect to the Apple AppStore in Mobile Center.

## Response `201`

Success

- object — ExternalStoreResponse
  - `id` string — Store id
  - `name` string — Store Name
  - `type` string — Store Type
  - `track` 'production' | 'alpha' | 'beta' | 'testflight-internal' | 'testflight-external' — Store track
  - `intune_details` object — Store details for intune
    - `target_audience` object
      - `name` string — display name for the target audience/group
      - `id` string — ID for the target audience/group.
    - `app_category` object
      - `name` string — display name for the app category
      - `id` string — ID for the category.
  - `service_connection_id` string — Id for the shared service connection. In case of Apple / GooglePlay stores, this connection will be used to connect to the Apple / Google stores in App Center.
  - `created_by` string — The ID of the principal that created the store.
  - `created_by_principal_type` string — The type of the principal that created the store.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/appcenter/apis/app-center-client.md) · [All operations](https://skmtc.net/appcenter/apis/app-center-client/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/appcenter/app-center-client/revisions/4e9226ab8f35/schema)
