---
title: "Create a new market"
method: POST
path: "/api/market"
tags: ["Market"]
---

# Create a new market

`POST /api/market`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/market`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/market/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new market with the provided name and associated territories

## Request body

- MarketStoreUpdateRequest
  - `name` string, required: Name of the market
  - `market_category_id` integer: Market category ID
  - `market_grouping_id` integer: Market grouping ID
  - `continents` object[]: Array of continent objects with IDs
    - `id` integer
  - `countries` object[]: Array of country objects with IDs
    - `id` integer
  - `states` object[]: Array of state objects with IDs
    - `id` integer
  - `counties` object[]: Array of county objects with IDs
    - `id` integer
  - `cities` object[]: Array of city objects with IDs
    - `id` integer

## Response `200`

Market created successfully

- object
  - `id` integer
  - `name` string
  - `country_id` integer, nullable
  - `market_grouping_id` integer, nullable

## Other responses

- `401`: Unauthenticated
- `422`: Validation error

---

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