---
title: "Replace Brand Hs Code Country Restrictions"
method: PUT
path: "/brand/hs-code-country-restrictions"
---

# Replace Brand Hs Code Country Restrictions

`PUT /brand/hs-code-country-restrictions`

## Request

- Base URL: `https://app.datesnrates.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.datesnrates.com/brand/hs-code-country-restrictions`
- Auth: HTTP bearer

## Request body

- BrandHsCodeCountryRestrictionsReplacePayload
  - `rows` BrandHsCodeCountryRestrictionPayload[]
    - `country_of_origin` string, required
    - `sku` string, nullable
    - `hs_code` string, required
    - `allowed_destination_countries` string[]

## Response `200`

Successful Response

- BrandHsCodeCountryRestrictionsResponse
  - `enabled` boolean
  - `rows` BrandHsCodeCountryRestriction[]
    - `id` integer, required
    - `brand_id` integer, required
    - `country_of_origin` string, required
    - `sku` string, nullable
    - `hs_code` string, required
    - `allowed_destination_countries` string[]
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

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