- Start your Apidog journey
- Sample APIs
- Users
- Ecommerce
- Profile
- Features Group
- Features
- Order
- Order web
- Appointment
- Quotation
- Plan
- Addresses
- Watch list Web
- Dashboard Carts
- Capabilities
- Product
- Production Line
- Attribute
- Group
- Review
- Branch
- Create Branch
- Update Branch By Id
- Get Branch By Id
- Get Branch All
- Get Branchs with pagination
- Delete Branch By Id
- Bulk Delete Branches
- Get Web Branch By Coordinates
- Get All Web Branch With Pagination
- Get All Web Branch
- Import Branch Zones
- Get Import Branch Zones Example
- Get Branch Zones File
- Import Branch Products
- Get Import Branch Products Example
- Get Branch Products File
- Link To Branches
- Addons
- Get Web Product By Id
- Get Web Product By Criteria
- Create Product
- Get Product By Id
- Get Product By Criteria
- Link Product By Id to Branches
- Update Product By Id
- Link Product By Id to Production Line
- Delete Product By Id
- Delete Duplicated Products
- Category
- Unit
- Contact
- Payment
- Setup
- Config
- Currency
- Location
- Country
- City
- Area
- Zone
- Location Web
- Ticket type
- Settings
- Cart
- Ticket
- Coupon
- Checkout
- Survey
- Truncate Collection ListDELETE
- Fix Product AttributesPUT
- Files
Update zone
Developing
PUT
{{ecommercev2_url}}/zones/{id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '{{ecommercev2_url}}/zones/' \
--header 'x-client: {{client}}' \
--header 'accept-language: {{acceptLanguage}}' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
"name": "string",
"isActive": true,
"code": "string",
"countryIds": [
"string"
],
"cityIds": [
"string"
],
"areaIds": [
"string"
],
"polygons": [
{
"points": [
{
"longitude": 0,
"latitude": 0
}
]
}
]
}'
Response Response Example
{}
Request
Authorization
API Key
Add parameter in header
x-access-token
Example:
x-access-token: ********************
or
Path Params
id
stringÂ
required
Header Params
x-access-token
stringÂ
optional
Example:
{{admin-token}}
x-client
stringÂ
optional
Example:
{{client}}
accept-language
stringÂ
optional
Example:
{{acceptLanguage}}
Body Params application/json
name
stringÂ
required
isActive
booleanÂ
required
code
stringÂ
required
countryIds
array[string]
required
cityIds
array[string]
required
areaIds
array[string]
required
polygons
array [object {1}]Â
required
points
array [object {2}]Â
required
Examples
Responses
🟢200Success
application/json
Body
object {0}
Modified at 2025-04-29 12:03:24