Download OpenAPI specification:Download
The Astra DB Serverless Data API modifies and queries data stored as unstructured JSON documents in collections. See the documentation site for additional information.
Executes a single general command.
name required | string [ 1 .. 48 ] characters [a-zA-Z][a-zA-Z0-9_]* Name of the keyspace |
object (CreateKeyspace.Options) Options for creating a new keyspace. |
{- "createKeyspace": {
- "name": "cycling"
}
}
{- "status": {
- "ok": 1
}
}
Executes a single command against a collection.
keyspace required | string <= 48 characters [a-zA-Z][a-zA-Z0-9_]* Example: cycling The keyspace where the collection is located. |
name required | string [ 1 .. 48 ] characters [a-zA-Z][a-zA-Z0-9_]* Name of the collection |
object Configuration options for the collection |
{- "createCollection": {
- "name": "events"
}
}
{- "status": {
- "ok": 1
}
}
Executes a single command against a collection.
keyspace required | string <= 48 characters [a-zA-Z][a-zA-Z0-9_]* Example: cycling The keyspace where the collection is located. |
collection required | string <= 48 characters [a-zA-Z][a-zA-Z0-9_]* Example: events The name of the collection. |
object (JsonNode) | |
object (FilterClause) |
{- "countDocuments": {
- "filter": {
- "location": "London",
- "race.competitors": {
- "$eq": 100
}
}
}
}
{- "status": {
- "count": 2
}
}