Skip to content

Create location

POST
/locations

Create a new location and initialize its durable object

Authorizations

bearerAuth

Generate an API token here

Type
HTTP (bearer)

Parameters

Header Parameters

compatibility-date*

API compatibility date in YYYY-MM-DD format. Must be a date after 2025-11-01.

Type
string
Required
Example"2025-11-01"
Pattern
"^\\d{4}-\\d{2}-\\d{2}$"
organization-id*
Type
string
Required
Min Length
1
Max Length
40

Request Body

application/json
object
Min Length1
Max Length128
Default"Etc/UTC"
object
object
object |null
object[]

Responses

success.location.create

application/json
object
object
Required

Playground

Authorization
Headers
Body

Samples