POST
/
v1
/
organizations
/
{organizationSlug}
/
groups
curl -L -X POST 'https://api.turso.tech/v1/organizations/{organizationSlug}/groups' \
-H 'Authorization: Bearer TOKEN' \
-H 'Content-Type: application/json' \
-d '{
    "name": "new-group",
    "location": "lhr"
}'
{
  "group": {
    "name": "default",
    "version": "v0.23.7",
    "uuid": "0a28102d-6906-11ee-8553-eaa7715aeaf2",
    "locations": [
      "lhr",
      "ams",
      "bos"
    ],
    "primary": "us-east-1",
    "delete_protection": false
  }
}

Creating more than one group is limited to Scaler, Pro and Enterprise plans.

curl -L -X POST 'https://api.turso.tech/v1/organizations/{organizationSlug}/groups' \
-H 'Authorization: Bearer TOKEN' \
-H 'Content-Type: application/json' \
-d '{
    "name": "new-group",
    "location": "lhr"
}'

Path Parameters

organizationSlug
string
required

The slug of the organization or user account.

Body

application/json
Group data to create a new group

The body is of type object.

Response

200
application/json
Successful response

The response is of type object.