> ## Documentation Index
> Fetch the complete documentation index at: https://offergrid.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a market



## OpenAPI

````yaml /openapi/openapi-provider.json patch /provider/markets/{id}
openapi: 3.0.0
info:
  title: OfferGrid API
  description: >-
    **Provider API** - Create and manage service offerings, fulfill orders from
    resellers.


    As a provider, you can:

    - Create and publish service offerings (internet, electricity)

    - Control which resellers can access your offers (all, preferred, or
    selected)

    - View and manage orders from resellers

    - Update order fulfillment status and schedule installations

    - Track order lifecycle from pending to completion
  version: '1.0'
  contact: {}
servers:
  - url: https://api.offergrid.io
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: provider-offers
    description: 'Provider: Manage your service offerings'
  - name: provider-orders
    description: 'Provider: Fulfill orders from resellers'
paths:
  /provider/markets/{id}:
    patch:
      tags:
        - provider-markets
      summary: Update a market
      operationId: ProviderMarketsController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMarketDto'
      responses:
        '200':
          description: ''
      security:
        - api-key: []
components:
  schemas:
    UpdateMarketDto:
      type: object
      properties:
        name:
          type: string
          description: Provider-facing market name. Unique per provider team.
          example: Austin Metro
        description:
          type: string
          description: Optional description of the market.
          example: Fiber footprint across Travis and Williamson counties.
        status:
          type: string
          description: Lifecycle status.
          enum:
            - draft
            - active
            - paused
            - archived
          default: draft
        tags:
          description: Free-form tags for grouping markets.
          example:
            - fiber
            - priority
          type: array
          items:
            type: string
      title: Update Market
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Team API key for authentication. Your team role
        (provider/reseller/hybrid) determines which endpoints you can access.

````