Skip to navigation

Create Regions

This feature is in beta and may change. Requests return 403 until the feature flag is enabled for your site or workspace.

Creates up to 1000 regions, each like Create Region. The response has one result per region, in request order: the created region, or the error that kept it from being created. An error in one region does not keep the others from being created. Only an error in the request itself, such as an invalid body, rejects the whole batch.

Regions in the default locale are created before regions in site locales, so a region in a site locale may come before its default locale’s region in the batch.

The request body is limited to 500 KB, and a larger one is rejected with 413, so a request with element trees may hold fewer regions than that.

Authentication

x-api-keystring

API key authentication with an App API key (e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ).

Request

This endpoint expects an object.
siteIdstringRequiredformat: "uuid"
The site ID to create the regions in.
regionslist of objectsRequired
The regions to create.

Response

object
OR
object

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error