---
title: "Update a location"
method: PATCH
path: "/commerce/{connection_id}/location/{id}"
tags: ["commerce", "location"]
---

# Update a location

`PATCH /commerce/{connection_id}/location/{id}`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- CommerceLocation
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `name` string
  - `address` PropertyCommerceLocationAddress
    - `address1` string
    - `address2` string
    - `city` string
    - `region` string
    - `region_code` string
    - `postal_code` string
    - `country` string
    - `country_code` string
  - `description` string
  - `is_active` boolean
  - `language_locale` string
  - `parent_id` string
  - `currency` string
  - `location_type` 'RESTAURANT' | 'SALON' | 'WAREHOUSE' | 'STORE' | 'OTHER'
  - `telephones` CommerceTelephone[]
    - `telephone` string, required
    - `type` 'WORK' | 'HOME' | 'FAX' | 'MOBILE' | 'OTHER'
  - `rating` number
  - `review_count` number
  - `price_level` string
  - `latitude` number
  - `longitude` number
  - `image_url` string
  - `web_url` string
  - `media` CommerceItemMedia[]
    - `id` string
    - `url` string, required
    - `alt` string
    - `type` 'image' | 'video'
    - `height` number
    - `width` number
    - `position` number
    - `metadata` CommerceMetadata[]
      - `id` string
      - `value` union
        - object
        - string
        - number
        - boolean
        - union[]
          - union
            - object
            - string
            - number
            - boolean
      - `namespace` string
      - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
      - `extra_data` union
        - object
        - string
        - number
        - boolean
        - union[]
          - union
            - object
            - string
            - number
            - boolean
      - `slug` string
      - `description` string
      - `is_required` boolean
  - `raw` object
  - `categories` string[]

## Response `200`

Successful

- CommerceLocation
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `name` string
  - `address` PropertyCommerceLocationAddress
    - `address1` string
    - `address2` string
    - `city` string
    - `region` string
    - `region_code` string
    - `postal_code` string
    - `country` string
    - `country_code` string
  - `description` string
  - `is_active` boolean
  - `language_locale` string
  - `parent_id` string
  - `currency` string
  - `location_type` 'RESTAURANT' | 'SALON' | 'WAREHOUSE' | 'STORE' | 'OTHER'
  - `telephones` CommerceTelephone[]
    - `telephone` string, required
    - `type` 'WORK' | 'HOME' | 'FAX' | 'MOBILE' | 'OTHER'
  - `rating` number
  - `review_count` number
  - `price_level` string
  - `latitude` number
  - `longitude` number
  - `image_url` string
  - `web_url` string
  - `media` CommerceItemMedia[]
    - `id` string
    - `url` string, required
    - `alt` string
    - `type` 'image' | 'video'
    - `height` number
    - `width` number
    - `position` number
    - `metadata` CommerceMetadata[]
      - `id` string
      - `value` union
        - object
        - string
        - number
        - boolean
        - union[]
          - union
            - object
            - string
            - number
            - boolean
      - `namespace` string
      - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
      - `extra_data` union
        - object
        - string
        - number
        - boolean
        - union[]
          - union
            - object
            - string
            - number
            - boolean
      - `slug` string
      - `description` string
      - `is_required` boolean
  - `raw` object
  - `categories` string[]

---

[API](https://skmtc.net/unified/apis/unified-to-api.md) · [All operations](https://skmtc.net/unified/apis/unified-to-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unified/unified-to-api/versions/1f72720916e4/schema)
