Skip to content

Commit 8949ae5

Browse files
committed
docs: remove the empty-body create-database API example
POST /v2/weblite/{database} with no body returns 422 ("Missing database name or location parameter"); the REST API cannot create an empty database. Point readers to the Dashboard and CREATE DATABASE instead.
1 parent 6115536 commit 8949ae5

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

sqlite-cloud/create-database.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,7 @@ The default encoding is set to UTF-8, and the default page size is 4096KB.
4949

5050

5151
### From the API
52-
To create a new database or upload an existing database via [Weblite](/docs/weblite), our REST API, you can make a request with the following parameters:
53-
```bash
54-
curl -X 'POST' \
55-
'https://<your-project-id>.<your-hosted-zone>.gateway.sqlite.cloud/v2/weblite/<database-name>.sqlite' \
56-
-H 'accept: application/json' \
57-
-H 'Authorization: Bearer <your-api-key>' \
58-
-d ''
59-
```
52+
The [Weblite](/docs/weblite) REST API creates a database only by transferring an existing file from a URL, as shown in the upload section above. To create a new, empty database, use the Dashboard or the `CREATE DATABASE` command from a client library, as described below.
6053

6154
### From client libraries
6255
To create a new database from a client library, connect to your cluster using a connection string without a specified database.

0 commit comments

Comments
 (0)