Create location
POST
/locations
Create a new location and initialize its durable object
Parameters
Header Parameters
compatibility-date*
API compatibility date in YYYY-MM-DD format. Must be a date after 2025-11-01.
Type
Requiredstring
Example
"2025-11-01"Pattern
"^\\d{4}-\\d{2}-\\d{2}$"organization-id*
Type
Requiredstring
Min Length
1Max Length
40Request Body
application/json
name
string
Required
Min Length
1Max Length
128timezone
string
Default
"Etc/UTC"location
object
metadata
object
price
object |null
electricityCost
object[]
Responses
success.location.create
application/json
object
success
const:true
Required
location
object
Required