v54

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-01594762.7 KB
Polygons

Create or update polygon

Creates or updates a polygon of your store, using geolocation coordinates.

Permissions

Any user or API key must have at least one of the appropriate License Manager resources to be able to successfully run this request. Otherwise they will receive a status code 403 error. These are the applicable resources for this endpoint:

ProductCategoryResource
LogisticsLogistics accessLogistics full access
LogisticsLogistics accessLogistics shipping full access

You can create a custom role with that resource or use one of the following predefined roles:

RoleResource
Logistics - Full accessLogistics full access
OMS - Full accessLogistics full access
Logistics - Full accessLogistics shipping full access
OMS - Full accessLogistics shipping full access

❗ Assigning a predefined role to users or application keys usually grants permission to multiple License Manager resources. If some of these permissions are not necessary, consider creating a custom role instead. For more information regarding security, see Best practices for using application keys. To learn more about machine authentication at VTEX, see Authentication overview.

put/api/logistics/pvt/configuration/geoshape

Headers

Content-Typestring required

Type of the content being sent.

Acceptstring required

HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.

Request body

namestring required

Name of the polygon being created or updated.

Example request

{
  "name": "ipanema_leblon",
  "geoShape": {
    "coordinates": [
      [
        [
          -43.23171615600586,
          -22.990713500405295
        ],
        [
          -43.182621002197266,
          -22.990713500405295
        ],
        [
          -43.182621002197266,
          -22.977043559707305
        ],
        [
          -43.23171615600586,
          -22.977043559707305
        ],
        [
          -43.23171615600586,
          -22.990713500405295
        ]
      ]
    ]
  }
}

Response

OK

string required

Name of the polygon created or updated.