mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: update createRow as well
This commit is contained in:
@@ -7675,7 +7675,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -37474,7 +37474,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -27845,7 +27845,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -1891,7 +1891,7 @@
|
||||
"prefs": {
|
||||
"type": "object",
|
||||
"description": "Prefs key-value JSON object.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -5020,7 +5020,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -7675,7 +7675,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -1911,7 +1911,7 @@
|
||||
"prefs": {
|
||||
"type": "object",
|
||||
"description": "Prefs key-value JSON object.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -9575,7 +9575,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -15150,7 +15150,7 @@
|
||||
},
|
||||
"\/health\/queue\/stats-resources": {
|
||||
"get": {
|
||||
"summary": "Get stats resources queue",
|
||||
"summary": "Get stats resources queue",
|
||||
"operationId": "healthGetQueueStatsResources",
|
||||
"tags": [
|
||||
"health"
|
||||
@@ -37474,7 +37474,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -1926,7 +1926,7 @@
|
||||
"prefs": {
|
||||
"type": "object",
|
||||
"description": "Prefs key-value JSON object.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -9057,7 +9057,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -13887,7 +13887,7 @@
|
||||
},
|
||||
"\/health\/queue\/stats-resources": {
|
||||
"get": {
|
||||
"summary": "Get stats resources queue",
|
||||
"summary": "Get stats resources queue",
|
||||
"operationId": "healthGetQueueStatsResources",
|
||||
"tags": [
|
||||
"health"
|
||||
@@ -27845,7 +27845,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -7749,7 +7749,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -37572,7 +37572,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -28003,7 +28003,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -1979,7 +1979,7 @@
|
||||
"type": "object",
|
||||
"description": "Prefs key-value JSON object.",
|
||||
"default": {},
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -5154,7 +5154,7 @@
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -7749,7 +7749,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -2009,7 +2009,7 @@
|
||||
"type": "object",
|
||||
"description": "Prefs key-value JSON object.",
|
||||
"default": {},
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -9680,7 +9680,7 @@
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -15186,7 +15186,7 @@
|
||||
},
|
||||
"\/health\/queue\/stats-resources": {
|
||||
"get": {
|
||||
"summary": "Get stats resources queue",
|
||||
"summary": "Get stats resources queue",
|
||||
"operationId": "healthGetQueueStatsResources",
|
||||
"consumes": [],
|
||||
"produces": [
|
||||
@@ -37572,7 +37572,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -2023,7 +2023,7 @@
|
||||
"type": "object",
|
||||
"description": "Prefs key-value JSON object.",
|
||||
"default": {},
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -9152,7 +9152,7 @@
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -13952,7 +13952,7 @@
|
||||
},
|
||||
"\/health\/queue\/stats-resources": {
|
||||
"get": {
|
||||
"summary": "Get stats resources queue",
|
||||
"summary": "Get stats resources queue",
|
||||
"operationId": "healthGetQueueStatsResources",
|
||||
"consumes": [],
|
||||
"produces": [
|
||||
@@ -28003,7 +28003,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"john.doe\",\"email\":\"john.doe@example.com\",\"fullName\":\"John Doe\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -95,7 +95,7 @@ class Create extends DocumentCreate
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('rowId', '', new CustomId(), 'Row ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.', true)
|
||||
->param('tableId', '', new UID(), 'Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). Make sure to define columns before creating rows.')
|
||||
->param('data', [], new JSON(), 'Row data as JSON object.', true)
|
||||
->param('data', [], new JSON(), 'Row data as JSON object.', true, example: '{"username":"john.doe","email":"john.doe@example.com","fullName":"John Doe","age":30,"isAdmin":false}')
|
||||
->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE, [Database::PERMISSION_READ, Database::PERMISSION_UPDATE, Database::PERMISSION_DELETE, Database::PERMISSION_WRITE]), 'An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).', true)
|
||||
->param('rows', [], fn (array $plan) => new ArrayList(new JSON(), $plan['databasesBatchSize'] ?? APP_LIMIT_DATABASE_BATCH), 'Array of documents data as JSON objects.', true, ['plan'])
|
||||
->inject('response')
|
||||
|
||||
Reference in New Issue
Block a user