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

# Create a new market grouping

`POST /api/market/grouping`

## 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/grouping`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/market/grouping/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new market grouping with territory support configuration

## Request body

- ManageMarketCategoryForCountryRequest
  - `id` integer: ID for update operations
  - `name` string: Name of the market grouping
  - `level` string, required: Territory level (country, continent, generic)
  - `level_id` integer, required: ID of the territory at the specified level
  - `supports` object[], required: Configuration for supported territory types
    - `id` integer
    - `enabled` boolean

## Response `200`

Market grouping created successfully

- MarketGroupingManagementResource
  - `id` integer: Market grouping ID
  - `level` string: Territory level (country, continent, generic)
  - `level_id` integer: ID of the territory (country or continent)
  - `name` string: Market grouping name
  - `slug` string: Market grouping slug
  - `editable` boolean: Whether the market grouping is editable
  - `supports` object[]: Array of supported territory types
    - `id` integer: Territory type ID
    - `type` string: Territory type (city, county, state, country, continent)
    - `name` string: Territory type name
    - `enabled` boolean: Whether this territory type is enabled
    - `multi` boolean: Whether multiple selections are allowed
  - `state_alias` string, nullable: State alias (only for country level)
  - `state_count` integer, nullable: Number of states (only for country level)
  - `county_count` integer, nullable: Number of counties (only for country level)
  - `city_count` integer, nullable: Number of cities (only for country level)
  - `created_at` string, date-time: Creation timestamp
  - `updated_at` string, date-time: Last update timestamp

## 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)
