diff --git a/app/config/specs/open-api3-1.8.x-client.json b/app/config/specs/open-api3-1.8.x-client.json index 0841dabbd1..c72300e004 100644 --- a/app/config/specs/open-api3-1.8.x-client.json +++ b/app/config/specs/open-api3-1.8.x-client.json @@ -5745,7 +5745,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -5820,7 +5820,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -5936,7 +5936,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -7491,7 +7491,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 432, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -7579,7 +7579,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 424, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -7724,7 +7724,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 425, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -7822,7 +7822,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 428, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -7961,7 +7961,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 426, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -8063,7 +8063,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 430, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -8150,7 +8150,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 435, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -8268,7 +8268,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 434, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index 31cb8e5105..b39181e025 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -4888,7 +4888,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 488, + "weight": 500, "cookies": false, "type": "", "demo": "console\/get-resource.md", @@ -7768,6 +7768,666 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 362, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric 2d point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 363, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 364, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 365, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 366, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7792,7 +8452,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -7927,7 +8587,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -8048,7 +8708,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -8168,7 +8828,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -8278,7 +8938,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 372, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8583,7 +9243,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -10056,7 +10716,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 376, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -10142,7 +10802,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 373, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -10209,7 +10869,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -10274,7 +10935,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 374, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -10349,7 +11010,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 375, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -10837,7 +11498,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 444, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -10910,7 +11571,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -11143,7 +11804,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -11192,7 +11853,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -11242,7 +11903,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 458, + "weight": 470, "cookies": false, "type": "", "demo": "functions\/list-templates.md", @@ -11342,7 +12003,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 457, + "weight": 469, "cookies": false, "type": "", "demo": "functions\/get-template.md", @@ -11402,7 +12063,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 451, + "weight": 463, "cookies": false, "type": "", "demo": "functions\/list-usage.md", @@ -11474,7 +12135,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -11533,7 +12194,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -11763,7 +12424,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -11824,7 +12485,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -11904,7 +12565,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 451, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -11987,7 +12648,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 448, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -12083,7 +12744,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -12168,7 +12829,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -12271,7 +12932,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -12368,7 +13029,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -12430,7 +13091,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -12494,7 +13155,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 455, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -12584,7 +13245,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -12655,7 +13316,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -12730,7 +13391,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -12846,7 +13507,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -12911,7 +13572,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -12982,7 +13643,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 450, + "weight": 462, "cookies": false, "type": "", "demo": "functions\/get-usage.md", @@ -13064,7 +13725,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 466, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -13123,7 +13784,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -13214,7 +13875,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 465, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -13283,7 +13944,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 467, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -13374,7 +14035,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 468, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -23365,7 +24026,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 427, + "weight": 439, "cookies": false, "type": "", "demo": "projects\/list-dev-keys.md", @@ -23433,7 +24094,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 424, + "weight": 436, "cookies": false, "type": "", "demo": "projects\/create-dev-key.md", @@ -23518,7 +24179,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 426, + "weight": 438, "cookies": false, "type": "", "demo": "projects\/get-dev-key.md", @@ -23586,7 +24247,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 425, + "weight": 437, "cookies": false, "type": "", "demo": "projects\/update-dev-key.md", @@ -23672,7 +24333,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 428, + "weight": 440, "cookies": false, "type": "", "demo": "projects\/delete-dev-key.md", @@ -27580,7 +28241,7 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 489, + "weight": 501, "cookies": false, "type": "", "demo": "proxy\/create-api-rule.md", @@ -27647,7 +28308,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 491, + "weight": 503, "cookies": false, "type": "", "demo": "proxy\/create-function-rule.md", @@ -27725,7 +28386,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 492, + "weight": 504, "cookies": false, "type": "", "demo": "proxy\/create-redirect-rule.md", @@ -27838,7 +28499,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 490, + "weight": 502, "cookies": false, "type": "", "demo": "proxy\/create-site-rule.md", @@ -28087,7 +28748,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 473, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -28157,7 +28818,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -28406,7 +29067,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -28455,7 +29116,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 499, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -28505,7 +29166,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 483, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/list-templates.md", @@ -28605,7 +29266,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 484, + "weight": 496, "cookies": false, "type": "", "demo": "sites\/get-template.md", @@ -28665,7 +29326,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 485, + "weight": 497, "cookies": false, "type": "", "demo": "sites\/list-usage.md", @@ -28737,7 +29398,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -28796,7 +29457,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -29041,7 +29702,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -29102,7 +29763,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -29182,7 +29843,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -29265,7 +29926,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 477, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -29366,7 +30027,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -29446,7 +30107,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -29549,7 +30210,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -29647,7 +30308,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 480, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -29709,7 +30370,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -29773,7 +30434,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 484, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -29863,7 +30524,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -29934,7 +30595,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -30005,7 +30666,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -30067,7 +30728,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -30138,7 +30799,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 486, + "weight": 498, "cookies": false, "type": "", "demo": "sites\/get-usage.md", @@ -30220,7 +30881,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -30279,7 +30940,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -30370,7 +31031,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -30439,7 +31100,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -30530,7 +31191,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -32002,7 +32663,7 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 381, "cookies": false, "type": "", "demo": "tablesdb\/list.md", @@ -32075,7 +32736,7 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 377, "cookies": false, "type": "", "demo": "tablesdb\/create.md", @@ -32154,7 +32815,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 377, + "weight": 383, "cookies": false, "type": "", "demo": "tablesdb\/list-usage.md", @@ -32251,7 +32912,7 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 378, "cookies": false, "type": "", "demo": "tablesdb\/get.md", @@ -32310,7 +32971,7 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 379, "cookies": false, "type": "", "demo": "tablesdb\/update.md", @@ -32386,7 +33047,7 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 380, "cookies": false, "type": "", "demo": "tablesdb\/delete.md", @@ -32447,7 +33108,7 @@ "x-appwrite": { "method": "listTables", "group": "tables", - "weight": 382, + "weight": 388, "cookies": false, "type": "", "demo": "tablesdb\/list-tables.md", @@ -32533,7 +33194,7 @@ "x-appwrite": { "method": "createTable", "group": "tables", - "weight": 378, + "weight": 384, "cookies": false, "type": "", "demo": "tablesdb\/create-table.md", @@ -32640,7 +33301,7 @@ "x-appwrite": { "method": "getTable", "group": "tables", - "weight": 379, + "weight": 385, "cookies": false, "type": "", "demo": "tablesdb\/get-table.md", @@ -32712,7 +33373,7 @@ "x-appwrite": { "method": "updateTable", "group": "tables", - "weight": 380, + "weight": 386, "cookies": false, "type": "", "demo": "tablesdb\/update-table.md", @@ -32814,7 +33475,7 @@ "x-appwrite": { "method": "deleteTable", "group": "tables", - "weight": 381, + "weight": 387, "cookies": false, "type": "", "demo": "tablesdb\/delete-table.md", @@ -32888,7 +33549,7 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 393, "cookies": false, "type": "", "demo": "tablesdb\/list-columns.md", @@ -32975,7 +33636,7 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 394, "cookies": false, "type": "", "demo": "tablesdb\/create-boolean-column.md", @@ -33084,7 +33745,7 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 395, "cookies": false, "type": "", "demo": "tablesdb\/update-boolean-column.md", @@ -33198,7 +33859,7 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 396, "cookies": false, "type": "", "demo": "tablesdb\/create-datetime-column.md", @@ -33307,7 +33968,7 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 397, "cookies": false, "type": "", "demo": "tablesdb\/update-datetime-column.md", @@ -33421,7 +34082,7 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 398, "cookies": false, "type": "", "demo": "tablesdb\/create-email-column.md", @@ -33530,7 +34191,7 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 399, "cookies": false, "type": "", "demo": "tablesdb\/update-email-column.md", @@ -33644,7 +34305,7 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 400, "cookies": false, "type": "", "demo": "tablesdb\/create-enum-column.md", @@ -33762,7 +34423,7 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 401, "cookies": false, "type": "", "demo": "tablesdb\/update-enum-column.md", @@ -33885,7 +34546,7 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 402, "cookies": false, "type": "", "demo": "tablesdb\/create-float-column.md", @@ -34004,7 +34665,7 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/update-float-column.md", @@ -34128,7 +34789,7 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/create-integer-column.md", @@ -34247,7 +34908,7 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-integer-column.md", @@ -34371,7 +35032,7 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 406, "cookies": false, "type": "", "demo": "tablesdb\/create-ip-column.md", @@ -34480,7 +35141,7 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/update-ip-column.md", @@ -34570,6 +35231,660 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 409, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 410, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 411, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 412, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 413, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -34594,7 +35909,7 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/create-relationship-column.md", @@ -34728,7 +36043,7 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/create-string-column.md", @@ -34848,7 +36163,7 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-string-column.md", @@ -34967,7 +36282,7 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/create-url-column.md", @@ -35076,7 +36391,7 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/update-url-column.md", @@ -35221,7 +36536,7 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 391, "cookies": false, "type": "", "demo": "tablesdb\/get-column.md", @@ -35295,7 +36610,7 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 392, "cookies": false, "type": "", "demo": "tablesdb\/delete-column.md", @@ -35378,7 +36693,7 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/update-relationship-column.md", @@ -35489,7 +36804,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 423, "cookies": false, "type": "", "demo": "tablesdb\/list-indexes.md", @@ -35574,7 +36889,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-index.md", @@ -35640,7 +36955,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -35705,7 +37021,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 421, "cookies": false, "type": "", "demo": "tablesdb\/get-index.md", @@ -35779,7 +37095,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 422, "cookies": false, "type": "", "demo": "tablesdb\/delete-index.md", @@ -35862,7 +37178,7 @@ "x-appwrite": { "method": "listTableLogs", "group": "tables", - "weight": 383, + "weight": 389, "cookies": false, "type": "", "demo": "tablesdb\/list-table-logs.md", @@ -35948,7 +37264,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 432, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -36036,7 +37352,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 424, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -36205,7 +37521,7 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 429, "cookies": false, "type": "", "demo": "tablesdb\/upsert-rows.md", @@ -36328,7 +37644,7 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 427, "cookies": false, "type": "", "demo": "tablesdb\/update-rows.md", @@ -36425,7 +37741,7 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 431, "cookies": false, "type": "", "demo": "tablesdb\/delete-rows.md", @@ -36519,7 +37835,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 425, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -36617,7 +37933,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 428, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -36756,7 +38072,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 426, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -36858,7 +38174,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 430, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -36945,7 +38261,7 @@ "x-appwrite": { "method": "listRowLogs", "group": "logs", - "weight": 421, + "weight": 433, "cookies": false, "type": "", "demo": "tablesdb\/list-row-logs.md", @@ -37041,7 +38357,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 435, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -37159,7 +38475,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 434, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", @@ -37277,7 +38593,7 @@ "x-appwrite": { "method": "getTableUsage", "group": null, - "weight": 384, + "weight": 390, "cookies": false, "type": "", "demo": "tablesdb\/get-table-usage.md", @@ -37372,7 +38688,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 376, + "weight": 382, "cookies": false, "type": "", "demo": "tablesdb\/get-usage.md", @@ -38584,7 +39900,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -38664,7 +39980,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -38753,7 +40069,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -38813,7 +40129,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -38883,7 +40199,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -44924,6 +46240,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -45009,6 +46334,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -45885,6 +47219,225 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[0, 0]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[0, 0], [1, 1]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "table": { "description": "Table", "type": "object", @@ -45966,6 +47519,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -46051,6 +47613,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -46927,6 +48498,225 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[0, 0]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[0, 0], [1, 1]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "index": { "description": "Index", "type": "object", diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index 0fe1cf72ae..22f0affafa 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -7230,6 +7230,672 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 362, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric 2d point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 363, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 364, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 365, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 366, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7254,7 +7920,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -7390,7 +8056,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -7512,7 +8178,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -7633,7 +8299,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -7744,7 +8410,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 372, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8052,7 +8718,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -9452,7 +10118,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 376, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -9539,7 +10205,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 373, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -9607,7 +10273,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -9672,7 +10339,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 374, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -9748,7 +10415,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 375, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -9833,7 +10500,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 444, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -9907,7 +10574,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -10141,7 +10808,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -10191,7 +10858,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -10242,7 +10909,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -10302,7 +10969,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -10533,7 +11200,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -10595,7 +11262,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -10676,7 +11343,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 451, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -10760,7 +11427,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 448, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -10857,7 +11524,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -10943,7 +11610,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -11047,7 +11714,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -11145,7 +11812,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -11208,7 +11875,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -11273,7 +11940,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 455, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -11364,7 +12031,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -11436,7 +12103,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -11513,7 +12180,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -11631,7 +12298,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -11698,7 +12365,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -11770,7 +12437,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 466, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -11830,7 +12497,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -11922,7 +12589,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 465, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -11992,7 +12659,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 467, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -12084,7 +12751,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 468, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -19008,7 +19675,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 473, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -19079,7 +19746,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -19329,7 +19996,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -19379,7 +20046,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 499, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -19430,7 +20097,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -19490,7 +20157,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -19736,7 +20403,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -19798,7 +20465,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -19879,7 +20546,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -19963,7 +20630,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 477, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -20065,7 +20732,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -20146,7 +20813,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -20250,7 +20917,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -20349,7 +21016,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 480, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -20412,7 +21079,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -20477,7 +21144,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 484, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -20568,7 +21235,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -20640,7 +21307,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -20712,7 +21379,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -20775,7 +21442,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -20847,7 +21514,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -20907,7 +21574,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -20999,7 +21666,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -21069,7 +21736,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -21161,7 +21828,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -22501,7 +23168,7 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 381, "cookies": false, "type": "", "demo": "tablesdb\/list.md", @@ -22575,7 +23242,7 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 377, "cookies": false, "type": "", "demo": "tablesdb\/create.md", @@ -22655,7 +23322,7 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 378, "cookies": false, "type": "", "demo": "tablesdb\/get.md", @@ -22715,7 +23382,7 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 379, "cookies": false, "type": "", "demo": "tablesdb\/update.md", @@ -22792,7 +23459,7 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 380, "cookies": false, "type": "", "demo": "tablesdb\/delete.md", @@ -22854,7 +23521,7 @@ "x-appwrite": { "method": "listTables", "group": "tables", - "weight": 382, + "weight": 388, "cookies": false, "type": "", "demo": "tablesdb\/list-tables.md", @@ -22941,7 +23608,7 @@ "x-appwrite": { "method": "createTable", "group": "tables", - "weight": 378, + "weight": 384, "cookies": false, "type": "", "demo": "tablesdb\/create-table.md", @@ -23049,7 +23716,7 @@ "x-appwrite": { "method": "getTable", "group": "tables", - "weight": 379, + "weight": 385, "cookies": false, "type": "", "demo": "tablesdb\/get-table.md", @@ -23122,7 +23789,7 @@ "x-appwrite": { "method": "updateTable", "group": "tables", - "weight": 380, + "weight": 386, "cookies": false, "type": "", "demo": "tablesdb\/update-table.md", @@ -23225,7 +23892,7 @@ "x-appwrite": { "method": "deleteTable", "group": "tables", - "weight": 381, + "weight": 387, "cookies": false, "type": "", "demo": "tablesdb\/delete-table.md", @@ -23300,7 +23967,7 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 393, "cookies": false, "type": "", "demo": "tablesdb\/list-columns.md", @@ -23388,7 +24055,7 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 394, "cookies": false, "type": "", "demo": "tablesdb\/create-boolean-column.md", @@ -23498,7 +24165,7 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 395, "cookies": false, "type": "", "demo": "tablesdb\/update-boolean-column.md", @@ -23613,7 +24280,7 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 396, "cookies": false, "type": "", "demo": "tablesdb\/create-datetime-column.md", @@ -23723,7 +24390,7 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 397, "cookies": false, "type": "", "demo": "tablesdb\/update-datetime-column.md", @@ -23838,7 +24505,7 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 398, "cookies": false, "type": "", "demo": "tablesdb\/create-email-column.md", @@ -23948,7 +24615,7 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 399, "cookies": false, "type": "", "demo": "tablesdb\/update-email-column.md", @@ -24063,7 +24730,7 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 400, "cookies": false, "type": "", "demo": "tablesdb\/create-enum-column.md", @@ -24182,7 +24849,7 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 401, "cookies": false, "type": "", "demo": "tablesdb\/update-enum-column.md", @@ -24306,7 +24973,7 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 402, "cookies": false, "type": "", "demo": "tablesdb\/create-float-column.md", @@ -24426,7 +25093,7 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/update-float-column.md", @@ -24551,7 +25218,7 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/create-integer-column.md", @@ -24671,7 +25338,7 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-integer-column.md", @@ -24796,7 +25463,7 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 406, "cookies": false, "type": "", "demo": "tablesdb\/create-ip-column.md", @@ -24906,7 +25573,7 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/update-ip-column.md", @@ -24997,6 +25664,666 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 409, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 410, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 411, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 412, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 413, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -25021,7 +26348,7 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/create-relationship-column.md", @@ -25156,7 +26483,7 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/create-string-column.md", @@ -25277,7 +26604,7 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-string-column.md", @@ -25397,7 +26724,7 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/create-url-column.md", @@ -25507,7 +26834,7 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/update-url-column.md", @@ -25653,7 +26980,7 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 391, "cookies": false, "type": "", "demo": "tablesdb\/get-column.md", @@ -25728,7 +27055,7 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 392, "cookies": false, "type": "", "demo": "tablesdb\/delete-column.md", @@ -25812,7 +27139,7 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/update-relationship-column.md", @@ -25924,7 +27251,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 423, "cookies": false, "type": "", "demo": "tablesdb\/list-indexes.md", @@ -26010,7 +27337,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-index.md", @@ -26077,7 +27404,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -26142,7 +27470,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 421, "cookies": false, "type": "", "demo": "tablesdb\/get-index.md", @@ -26217,7 +27545,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 422, "cookies": false, "type": "", "demo": "tablesdb\/delete-index.md", @@ -26301,7 +27629,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 432, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -26391,7 +27719,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 424, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -26564,7 +27892,7 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 429, "cookies": false, "type": "", "demo": "tablesdb\/upsert-rows.md", @@ -26689,7 +28017,7 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 427, "cookies": false, "type": "", "demo": "tablesdb\/update-rows.md", @@ -26787,7 +28115,7 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 431, "cookies": false, "type": "", "demo": "tablesdb\/delete-rows.md", @@ -26882,7 +28210,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 425, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -26982,7 +28310,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 428, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -27124,7 +28452,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 426, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -27228,7 +28556,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 430, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -27317,7 +28645,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 435, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -27437,7 +28765,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 434, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", @@ -28612,7 +29940,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -28693,7 +30021,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -28783,7 +30111,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -28844,7 +30172,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -28915,7 +30243,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -33782,6 +35110,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -33867,6 +35204,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -34743,6 +36089,225 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[0, 0]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[0, 0], [1, 1]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "table": { "description": "Table", "type": "object", @@ -34824,6 +36389,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -34909,6 +36483,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -35785,6 +37368,225 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[0, 0]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[0, 0], [1, 1]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "index": { "description": "Index", "type": "object", diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index 0841dabbd1..c72300e004 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -5745,7 +5745,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -5820,7 +5820,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -5936,7 +5936,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -7491,7 +7491,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 432, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -7579,7 +7579,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 424, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -7724,7 +7724,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 425, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -7822,7 +7822,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 428, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -7961,7 +7961,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 426, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -8063,7 +8063,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 430, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -8150,7 +8150,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 435, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -8268,7 +8268,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 434, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index 31cb8e5105..b39181e025 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -4888,7 +4888,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 488, + "weight": 500, "cookies": false, "type": "", "demo": "console\/get-resource.md", @@ -7768,6 +7768,666 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 362, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric 2d point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 363, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 364, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 365, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 366, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7792,7 +8452,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -7927,7 +8587,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -8048,7 +8708,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -8168,7 +8828,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -8278,7 +8938,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 372, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8583,7 +9243,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -10056,7 +10716,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 376, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -10142,7 +10802,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 373, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -10209,7 +10869,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -10274,7 +10935,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 374, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -10349,7 +11010,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 375, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -10837,7 +11498,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 444, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -10910,7 +11571,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -11143,7 +11804,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -11192,7 +11853,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -11242,7 +11903,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 458, + "weight": 470, "cookies": false, "type": "", "demo": "functions\/list-templates.md", @@ -11342,7 +12003,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 457, + "weight": 469, "cookies": false, "type": "", "demo": "functions\/get-template.md", @@ -11402,7 +12063,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 451, + "weight": 463, "cookies": false, "type": "", "demo": "functions\/list-usage.md", @@ -11474,7 +12135,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -11533,7 +12194,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -11763,7 +12424,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -11824,7 +12485,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -11904,7 +12565,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 451, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -11987,7 +12648,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 448, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -12083,7 +12744,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -12168,7 +12829,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -12271,7 +12932,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -12368,7 +13029,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -12430,7 +13091,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -12494,7 +13155,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 455, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -12584,7 +13245,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -12655,7 +13316,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -12730,7 +13391,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -12846,7 +13507,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -12911,7 +13572,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -12982,7 +13643,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 450, + "weight": 462, "cookies": false, "type": "", "demo": "functions\/get-usage.md", @@ -13064,7 +13725,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 466, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -13123,7 +13784,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -13214,7 +13875,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 465, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -13283,7 +13944,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 467, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -13374,7 +14035,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 468, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -23365,7 +24026,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 427, + "weight": 439, "cookies": false, "type": "", "demo": "projects\/list-dev-keys.md", @@ -23433,7 +24094,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 424, + "weight": 436, "cookies": false, "type": "", "demo": "projects\/create-dev-key.md", @@ -23518,7 +24179,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 426, + "weight": 438, "cookies": false, "type": "", "demo": "projects\/get-dev-key.md", @@ -23586,7 +24247,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 425, + "weight": 437, "cookies": false, "type": "", "demo": "projects\/update-dev-key.md", @@ -23672,7 +24333,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 428, + "weight": 440, "cookies": false, "type": "", "demo": "projects\/delete-dev-key.md", @@ -27580,7 +28241,7 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 489, + "weight": 501, "cookies": false, "type": "", "demo": "proxy\/create-api-rule.md", @@ -27647,7 +28308,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 491, + "weight": 503, "cookies": false, "type": "", "demo": "proxy\/create-function-rule.md", @@ -27725,7 +28386,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 492, + "weight": 504, "cookies": false, "type": "", "demo": "proxy\/create-redirect-rule.md", @@ -27838,7 +28499,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 490, + "weight": 502, "cookies": false, "type": "", "demo": "proxy\/create-site-rule.md", @@ -28087,7 +28748,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 473, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -28157,7 +28818,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -28406,7 +29067,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -28455,7 +29116,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 499, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -28505,7 +29166,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 483, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/list-templates.md", @@ -28605,7 +29266,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 484, + "weight": 496, "cookies": false, "type": "", "demo": "sites\/get-template.md", @@ -28665,7 +29326,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 485, + "weight": 497, "cookies": false, "type": "", "demo": "sites\/list-usage.md", @@ -28737,7 +29398,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -28796,7 +29457,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -29041,7 +29702,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -29102,7 +29763,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -29182,7 +29843,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -29265,7 +29926,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 477, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -29366,7 +30027,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -29446,7 +30107,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -29549,7 +30210,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -29647,7 +30308,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 480, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -29709,7 +30370,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -29773,7 +30434,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 484, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -29863,7 +30524,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -29934,7 +30595,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -30005,7 +30666,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -30067,7 +30728,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -30138,7 +30799,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 486, + "weight": 498, "cookies": false, "type": "", "demo": "sites\/get-usage.md", @@ -30220,7 +30881,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -30279,7 +30940,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -30370,7 +31031,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -30439,7 +31100,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -30530,7 +31191,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -32002,7 +32663,7 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 381, "cookies": false, "type": "", "demo": "tablesdb\/list.md", @@ -32075,7 +32736,7 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 377, "cookies": false, "type": "", "demo": "tablesdb\/create.md", @@ -32154,7 +32815,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 377, + "weight": 383, "cookies": false, "type": "", "demo": "tablesdb\/list-usage.md", @@ -32251,7 +32912,7 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 378, "cookies": false, "type": "", "demo": "tablesdb\/get.md", @@ -32310,7 +32971,7 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 379, "cookies": false, "type": "", "demo": "tablesdb\/update.md", @@ -32386,7 +33047,7 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 380, "cookies": false, "type": "", "demo": "tablesdb\/delete.md", @@ -32447,7 +33108,7 @@ "x-appwrite": { "method": "listTables", "group": "tables", - "weight": 382, + "weight": 388, "cookies": false, "type": "", "demo": "tablesdb\/list-tables.md", @@ -32533,7 +33194,7 @@ "x-appwrite": { "method": "createTable", "group": "tables", - "weight": 378, + "weight": 384, "cookies": false, "type": "", "demo": "tablesdb\/create-table.md", @@ -32640,7 +33301,7 @@ "x-appwrite": { "method": "getTable", "group": "tables", - "weight": 379, + "weight": 385, "cookies": false, "type": "", "demo": "tablesdb\/get-table.md", @@ -32712,7 +33373,7 @@ "x-appwrite": { "method": "updateTable", "group": "tables", - "weight": 380, + "weight": 386, "cookies": false, "type": "", "demo": "tablesdb\/update-table.md", @@ -32814,7 +33475,7 @@ "x-appwrite": { "method": "deleteTable", "group": "tables", - "weight": 381, + "weight": 387, "cookies": false, "type": "", "demo": "tablesdb\/delete-table.md", @@ -32888,7 +33549,7 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 393, "cookies": false, "type": "", "demo": "tablesdb\/list-columns.md", @@ -32975,7 +33636,7 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 394, "cookies": false, "type": "", "demo": "tablesdb\/create-boolean-column.md", @@ -33084,7 +33745,7 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 395, "cookies": false, "type": "", "demo": "tablesdb\/update-boolean-column.md", @@ -33198,7 +33859,7 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 396, "cookies": false, "type": "", "demo": "tablesdb\/create-datetime-column.md", @@ -33307,7 +33968,7 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 397, "cookies": false, "type": "", "demo": "tablesdb\/update-datetime-column.md", @@ -33421,7 +34082,7 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 398, "cookies": false, "type": "", "demo": "tablesdb\/create-email-column.md", @@ -33530,7 +34191,7 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 399, "cookies": false, "type": "", "demo": "tablesdb\/update-email-column.md", @@ -33644,7 +34305,7 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 400, "cookies": false, "type": "", "demo": "tablesdb\/create-enum-column.md", @@ -33762,7 +34423,7 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 401, "cookies": false, "type": "", "demo": "tablesdb\/update-enum-column.md", @@ -33885,7 +34546,7 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 402, "cookies": false, "type": "", "demo": "tablesdb\/create-float-column.md", @@ -34004,7 +34665,7 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/update-float-column.md", @@ -34128,7 +34789,7 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/create-integer-column.md", @@ -34247,7 +34908,7 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-integer-column.md", @@ -34371,7 +35032,7 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 406, "cookies": false, "type": "", "demo": "tablesdb\/create-ip-column.md", @@ -34480,7 +35141,7 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/update-ip-column.md", @@ -34570,6 +35231,660 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 409, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 410, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 411, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 412, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 413, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -34594,7 +35909,7 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/create-relationship-column.md", @@ -34728,7 +36043,7 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/create-string-column.md", @@ -34848,7 +36163,7 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-string-column.md", @@ -34967,7 +36282,7 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/create-url-column.md", @@ -35076,7 +36391,7 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/update-url-column.md", @@ -35221,7 +36536,7 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 391, "cookies": false, "type": "", "demo": "tablesdb\/get-column.md", @@ -35295,7 +36610,7 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 392, "cookies": false, "type": "", "demo": "tablesdb\/delete-column.md", @@ -35378,7 +36693,7 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/update-relationship-column.md", @@ -35489,7 +36804,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 423, "cookies": false, "type": "", "demo": "tablesdb\/list-indexes.md", @@ -35574,7 +36889,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-index.md", @@ -35640,7 +36955,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -35705,7 +37021,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 421, "cookies": false, "type": "", "demo": "tablesdb\/get-index.md", @@ -35779,7 +37095,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 422, "cookies": false, "type": "", "demo": "tablesdb\/delete-index.md", @@ -35862,7 +37178,7 @@ "x-appwrite": { "method": "listTableLogs", "group": "tables", - "weight": 383, + "weight": 389, "cookies": false, "type": "", "demo": "tablesdb\/list-table-logs.md", @@ -35948,7 +37264,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 432, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -36036,7 +37352,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 424, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -36205,7 +37521,7 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 429, "cookies": false, "type": "", "demo": "tablesdb\/upsert-rows.md", @@ -36328,7 +37644,7 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 427, "cookies": false, "type": "", "demo": "tablesdb\/update-rows.md", @@ -36425,7 +37741,7 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 431, "cookies": false, "type": "", "demo": "tablesdb\/delete-rows.md", @@ -36519,7 +37835,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 425, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -36617,7 +37933,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 428, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -36756,7 +38072,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 426, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -36858,7 +38174,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 430, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -36945,7 +38261,7 @@ "x-appwrite": { "method": "listRowLogs", "group": "logs", - "weight": 421, + "weight": 433, "cookies": false, "type": "", "demo": "tablesdb\/list-row-logs.md", @@ -37041,7 +38357,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 435, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -37159,7 +38475,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 434, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", @@ -37277,7 +38593,7 @@ "x-appwrite": { "method": "getTableUsage", "group": null, - "weight": 384, + "weight": 390, "cookies": false, "type": "", "demo": "tablesdb\/get-table-usage.md", @@ -37372,7 +38688,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 376, + "weight": 382, "cookies": false, "type": "", "demo": "tablesdb\/get-usage.md", @@ -38584,7 +39900,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -38664,7 +39980,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -38753,7 +40069,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -38813,7 +40129,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -38883,7 +40199,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -44924,6 +46240,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -45009,6 +46334,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -45885,6 +47219,225 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[0, 0]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[0, 0], [1, 1]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "table": { "description": "Table", "type": "object", @@ -45966,6 +47519,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -46051,6 +47613,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -46927,6 +48498,225 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[0, 0]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[0, 0], [1, 1]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "index": { "description": "Index", "type": "object", diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index 0fe1cf72ae..22f0affafa 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -7230,6 +7230,672 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 362, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric 2d point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 363, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 364, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 365, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 366, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7254,7 +7920,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -7390,7 +8056,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -7512,7 +8178,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -7633,7 +8299,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -7744,7 +8410,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 372, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8052,7 +8718,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -9452,7 +10118,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 376, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -9539,7 +10205,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 373, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -9607,7 +10273,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -9672,7 +10339,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 374, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -9748,7 +10415,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 375, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -9833,7 +10500,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 444, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -9907,7 +10574,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -10141,7 +10808,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -10191,7 +10858,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -10242,7 +10909,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -10302,7 +10969,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -10533,7 +11200,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -10595,7 +11262,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -10676,7 +11343,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 451, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -10760,7 +11427,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 448, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -10857,7 +11524,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -10943,7 +11610,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -11047,7 +11714,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -11145,7 +11812,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -11208,7 +11875,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -11273,7 +11940,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 455, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -11364,7 +12031,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -11436,7 +12103,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -11513,7 +12180,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -11631,7 +12298,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -11698,7 +12365,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -11770,7 +12437,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 466, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -11830,7 +12497,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -11922,7 +12589,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 465, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -11992,7 +12659,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 467, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -12084,7 +12751,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 468, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -19008,7 +19675,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 473, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -19079,7 +19746,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -19329,7 +19996,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -19379,7 +20046,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 499, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -19430,7 +20097,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -19490,7 +20157,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -19736,7 +20403,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -19798,7 +20465,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -19879,7 +20546,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -19963,7 +20630,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 477, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -20065,7 +20732,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -20146,7 +20813,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -20250,7 +20917,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -20349,7 +21016,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 480, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -20412,7 +21079,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -20477,7 +21144,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 484, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -20568,7 +21235,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -20640,7 +21307,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -20712,7 +21379,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -20775,7 +21442,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -20847,7 +21514,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -20907,7 +21574,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -20999,7 +21666,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -21069,7 +21736,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -21161,7 +21828,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -22501,7 +23168,7 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 381, "cookies": false, "type": "", "demo": "tablesdb\/list.md", @@ -22575,7 +23242,7 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 377, "cookies": false, "type": "", "demo": "tablesdb\/create.md", @@ -22655,7 +23322,7 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 378, "cookies": false, "type": "", "demo": "tablesdb\/get.md", @@ -22715,7 +23382,7 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 379, "cookies": false, "type": "", "demo": "tablesdb\/update.md", @@ -22792,7 +23459,7 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 380, "cookies": false, "type": "", "demo": "tablesdb\/delete.md", @@ -22854,7 +23521,7 @@ "x-appwrite": { "method": "listTables", "group": "tables", - "weight": 382, + "weight": 388, "cookies": false, "type": "", "demo": "tablesdb\/list-tables.md", @@ -22941,7 +23608,7 @@ "x-appwrite": { "method": "createTable", "group": "tables", - "weight": 378, + "weight": 384, "cookies": false, "type": "", "demo": "tablesdb\/create-table.md", @@ -23049,7 +23716,7 @@ "x-appwrite": { "method": "getTable", "group": "tables", - "weight": 379, + "weight": 385, "cookies": false, "type": "", "demo": "tablesdb\/get-table.md", @@ -23122,7 +23789,7 @@ "x-appwrite": { "method": "updateTable", "group": "tables", - "weight": 380, + "weight": 386, "cookies": false, "type": "", "demo": "tablesdb\/update-table.md", @@ -23225,7 +23892,7 @@ "x-appwrite": { "method": "deleteTable", "group": "tables", - "weight": 381, + "weight": 387, "cookies": false, "type": "", "demo": "tablesdb\/delete-table.md", @@ -23300,7 +23967,7 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 393, "cookies": false, "type": "", "demo": "tablesdb\/list-columns.md", @@ -23388,7 +24055,7 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 394, "cookies": false, "type": "", "demo": "tablesdb\/create-boolean-column.md", @@ -23498,7 +24165,7 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 395, "cookies": false, "type": "", "demo": "tablesdb\/update-boolean-column.md", @@ -23613,7 +24280,7 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 396, "cookies": false, "type": "", "demo": "tablesdb\/create-datetime-column.md", @@ -23723,7 +24390,7 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 397, "cookies": false, "type": "", "demo": "tablesdb\/update-datetime-column.md", @@ -23838,7 +24505,7 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 398, "cookies": false, "type": "", "demo": "tablesdb\/create-email-column.md", @@ -23948,7 +24615,7 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 399, "cookies": false, "type": "", "demo": "tablesdb\/update-email-column.md", @@ -24063,7 +24730,7 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 400, "cookies": false, "type": "", "demo": "tablesdb\/create-enum-column.md", @@ -24182,7 +24849,7 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 401, "cookies": false, "type": "", "demo": "tablesdb\/update-enum-column.md", @@ -24306,7 +24973,7 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 402, "cookies": false, "type": "", "demo": "tablesdb\/create-float-column.md", @@ -24426,7 +25093,7 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/update-float-column.md", @@ -24551,7 +25218,7 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/create-integer-column.md", @@ -24671,7 +25338,7 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-integer-column.md", @@ -24796,7 +25463,7 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 406, "cookies": false, "type": "", "demo": "tablesdb\/create-ip-column.md", @@ -24906,7 +25573,7 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/update-ip-column.md", @@ -24997,6 +25664,666 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 409, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 410, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 411, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 412, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 413, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -25021,7 +26348,7 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/create-relationship-column.md", @@ -25156,7 +26483,7 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/create-string-column.md", @@ -25277,7 +26604,7 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-string-column.md", @@ -25397,7 +26724,7 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/create-url-column.md", @@ -25507,7 +26834,7 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/update-url-column.md", @@ -25653,7 +26980,7 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 391, "cookies": false, "type": "", "demo": "tablesdb\/get-column.md", @@ -25728,7 +27055,7 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 392, "cookies": false, "type": "", "demo": "tablesdb\/delete-column.md", @@ -25812,7 +27139,7 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/update-relationship-column.md", @@ -25924,7 +27251,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 423, "cookies": false, "type": "", "demo": "tablesdb\/list-indexes.md", @@ -26010,7 +27337,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-index.md", @@ -26077,7 +27404,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -26142,7 +27470,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 421, "cookies": false, "type": "", "demo": "tablesdb\/get-index.md", @@ -26217,7 +27545,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 422, "cookies": false, "type": "", "demo": "tablesdb\/delete-index.md", @@ -26301,7 +27629,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 432, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -26391,7 +27719,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 424, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -26564,7 +27892,7 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 429, "cookies": false, "type": "", "demo": "tablesdb\/upsert-rows.md", @@ -26689,7 +28017,7 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 427, "cookies": false, "type": "", "demo": "tablesdb\/update-rows.md", @@ -26787,7 +28115,7 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 431, "cookies": false, "type": "", "demo": "tablesdb\/delete-rows.md", @@ -26882,7 +28210,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 425, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -26982,7 +28310,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 428, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -27124,7 +28452,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 426, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -27228,7 +28556,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 430, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -27317,7 +28645,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 435, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -27437,7 +28765,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 434, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", @@ -28612,7 +29940,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -28693,7 +30021,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -28783,7 +30111,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -28844,7 +30172,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -28915,7 +30243,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -33782,6 +35110,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -33867,6 +35204,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -34743,6 +36089,225 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[0, 0]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[0, 0], [1, 1]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "table": { "description": "Table", "type": "object", @@ -34824,6 +36389,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -34909,6 +36483,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -35785,6 +37368,225 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[0, 0]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[0, 0], [1, 1]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]", + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "index": { "description": "Index", "type": "object", diff --git a/app/config/specs/swagger2-1.8.x-client.json b/app/config/specs/swagger2-1.8.x-client.json index efeb167a24..ea98bd764b 100644 --- a/app/config/specs/swagger2-1.8.x-client.json +++ b/app/config/specs/swagger2-1.8.x-client.json @@ -5845,7 +5845,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -5918,7 +5918,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -6035,7 +6035,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -7573,7 +7573,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 432, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -7657,7 +7657,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 424, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -7799,7 +7799,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 425, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -7891,7 +7891,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 428, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -8025,7 +8025,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 426, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -8124,7 +8124,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 430, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -8206,7 +8206,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 435, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -8317,7 +8317,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 434, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 788279b595..03435662b0 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -5052,7 +5052,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 488, + "weight": 500, "cookies": false, "type": "", "demo": "console\/get-resource.md", @@ -7906,6 +7906,654 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 362, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric 2d point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 363, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 364, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 365, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 366, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7932,7 +8580,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -8069,7 +8717,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -8192,7 +8840,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -8310,7 +8958,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -8420,7 +9068,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 372, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8714,7 +9362,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -10124,7 +10772,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 376, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -10207,7 +10855,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 373, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -10271,7 +10919,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -10338,7 +10987,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 374, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -10411,7 +11060,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 375, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -10875,7 +11524,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 444, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -10947,7 +11596,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -11198,7 +11847,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -11247,7 +11896,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -11297,7 +11946,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 458, + "weight": 470, "cookies": false, "type": "", "demo": "functions\/list-templates.md", @@ -11391,7 +12040,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 457, + "weight": 469, "cookies": false, "type": "", "demo": "functions\/get-template.md", @@ -11449,7 +12098,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 451, + "weight": 463, "cookies": false, "type": "", "demo": "functions\/list-usage.md", @@ -11519,7 +12168,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -11578,7 +12227,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -11825,7 +12474,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -11886,7 +12535,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -11963,7 +12612,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 451, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -12043,7 +12692,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 448, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -12135,7 +12784,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -12220,7 +12869,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -12326,7 +12975,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -12422,7 +13071,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -12484,7 +13133,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -12551,7 +13200,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 455, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -12636,7 +13285,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -12703,7 +13352,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -12776,7 +13425,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -12893,7 +13542,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -12957,7 +13606,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -13024,7 +13673,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 450, + "weight": 462, "cookies": false, "type": "", "demo": "functions\/get-usage.md", @@ -13102,7 +13751,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 466, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -13161,7 +13810,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -13251,7 +13900,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 465, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -13318,7 +13967,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 467, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -13410,7 +14059,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 468, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -23584,7 +24233,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 427, + "weight": 439, "cookies": false, "type": "", "demo": "projects\/list-dev-keys.md", @@ -23654,7 +24303,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 424, + "weight": 436, "cookies": false, "type": "", "demo": "projects\/create-dev-key.md", @@ -23737,7 +24386,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 426, + "weight": 438, "cookies": false, "type": "", "demo": "projects\/get-dev-key.md", @@ -23803,7 +24452,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 425, + "weight": 437, "cookies": false, "type": "", "demo": "projects\/update-dev-key.md", @@ -23889,7 +24538,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 428, + "weight": 440, "cookies": false, "type": "", "demo": "projects\/delete-dev-key.md", @@ -27775,7 +28424,7 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 489, + "weight": 501, "cookies": false, "type": "", "demo": "proxy\/create-api-rule.md", @@ -27845,7 +28494,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 491, + "weight": 503, "cookies": false, "type": "", "demo": "proxy\/create-function-rule.md", @@ -27928,7 +28577,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 492, + "weight": 504, "cookies": false, "type": "", "demo": "proxy\/create-redirect-rule.md", @@ -28048,7 +28697,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 490, + "weight": 502, "cookies": false, "type": "", "demo": "proxy\/create-site-rule.md", @@ -28300,7 +28949,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 473, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -28372,7 +29021,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -28639,7 +29288,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -28688,7 +29337,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 499, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -28738,7 +29387,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 483, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/list-templates.md", @@ -28832,7 +29481,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 484, + "weight": 496, "cookies": false, "type": "", "demo": "sites\/get-template.md", @@ -28890,7 +29539,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 485, + "weight": 497, "cookies": false, "type": "", "demo": "sites\/list-usage.md", @@ -28960,7 +29609,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -29019,7 +29668,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -29281,7 +29930,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -29342,7 +29991,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -29419,7 +30068,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -29499,7 +30148,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 477, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -29599,7 +30248,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -29678,7 +30327,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -29784,7 +30433,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -29881,7 +30530,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 480, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -29943,7 +30592,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -30010,7 +30659,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 484, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -30095,7 +30744,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -30162,7 +30811,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -30233,7 +30882,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -30297,7 +30946,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -30364,7 +31013,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 486, + "weight": 498, "cookies": false, "type": "", "demo": "sites\/get-usage.md", @@ -30442,7 +31091,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -30501,7 +31150,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -30591,7 +31240,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -30658,7 +31307,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -30750,7 +31399,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -32184,7 +32833,7 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 381, "cookies": false, "type": "", "demo": "tablesdb\/list.md", @@ -32256,7 +32905,7 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 377, "cookies": false, "type": "", "demo": "tablesdb\/create.md", @@ -32338,7 +32987,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 377, + "weight": 383, "cookies": false, "type": "", "demo": "tablesdb\/list-usage.md", @@ -32433,7 +33082,7 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 378, "cookies": false, "type": "", "demo": "tablesdb\/get.md", @@ -32492,7 +33141,7 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 379, "cookies": false, "type": "", "demo": "tablesdb\/update.md", @@ -32570,7 +33219,7 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 380, "cookies": false, "type": "", "demo": "tablesdb\/delete.md", @@ -32629,7 +33278,7 @@ "x-appwrite": { "method": "listTables", "group": "tables", - "weight": 382, + "weight": 388, "cookies": false, "type": "", "demo": "tablesdb\/list-tables.md", @@ -32712,7 +33361,7 @@ "x-appwrite": { "method": "createTable", "group": "tables", - "weight": 378, + "weight": 384, "cookies": false, "type": "", "demo": "tablesdb\/create-table.md", @@ -32820,7 +33469,7 @@ "x-appwrite": { "method": "getTable", "group": "tables", - "weight": 379, + "weight": 385, "cookies": false, "type": "", "demo": "tablesdb\/get-table.md", @@ -32890,7 +33539,7 @@ "x-appwrite": { "method": "updateTable", "group": "tables", - "weight": 380, + "weight": 386, "cookies": false, "type": "", "demo": "tablesdb\/update-table.md", @@ -32994,7 +33643,7 @@ "x-appwrite": { "method": "deleteTable", "group": "tables", - "weight": 381, + "weight": 387, "cookies": false, "type": "", "demo": "tablesdb\/delete-table.md", @@ -33064,7 +33713,7 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 393, "cookies": false, "type": "", "demo": "tablesdb\/list-columns.md", @@ -33148,7 +33797,7 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 394, "cookies": false, "type": "", "demo": "tablesdb\/create-boolean-column.md", @@ -33257,7 +33906,7 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 395, "cookies": false, "type": "", "demo": "tablesdb\/update-boolean-column.md", @@ -33368,7 +34017,7 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 396, "cookies": false, "type": "", "demo": "tablesdb\/create-datetime-column.md", @@ -33477,7 +34126,7 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 397, "cookies": false, "type": "", "demo": "tablesdb\/update-datetime-column.md", @@ -33588,7 +34237,7 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 398, "cookies": false, "type": "", "demo": "tablesdb\/create-email-column.md", @@ -33697,7 +34346,7 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 399, "cookies": false, "type": "", "demo": "tablesdb\/update-email-column.md", @@ -33808,7 +34457,7 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 400, "cookies": false, "type": "", "demo": "tablesdb\/create-enum-column.md", @@ -33927,7 +34576,7 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 401, "cookies": false, "type": "", "demo": "tablesdb\/update-enum-column.md", @@ -34048,7 +34697,7 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 402, "cookies": false, "type": "", "demo": "tablesdb\/create-float-column.md", @@ -34169,7 +34818,7 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/update-float-column.md", @@ -34292,7 +34941,7 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/create-integer-column.md", @@ -34413,7 +35062,7 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-integer-column.md", @@ -34536,7 +35185,7 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 406, "cookies": false, "type": "", "demo": "tablesdb\/create-ip-column.md", @@ -34645,7 +35294,7 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/update-ip-column.md", @@ -34730,6 +35379,648 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 409, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 410, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 411, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 412, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 413, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -34756,7 +36047,7 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/create-relationship-column.md", @@ -34892,7 +36183,7 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/create-string-column.md", @@ -35014,7 +36305,7 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-string-column.md", @@ -35131,7 +36422,7 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/create-url-column.md", @@ -35240,7 +36531,7 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/update-url-column.md", @@ -35380,7 +36671,7 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 391, "cookies": false, "type": "", "demo": "tablesdb\/get-column.md", @@ -35452,7 +36743,7 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 392, "cookies": false, "type": "", "demo": "tablesdb\/delete-column.md", @@ -35531,7 +36822,7 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/update-relationship-column.md", @@ -35636,7 +36927,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 423, "cookies": false, "type": "", "demo": "tablesdb\/list-indexes.md", @@ -35718,7 +37009,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-index.md", @@ -35781,7 +37072,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -35848,7 +37140,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 421, "cookies": false, "type": "", "demo": "tablesdb\/get-index.md", @@ -35920,7 +37212,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 422, "cookies": false, "type": "", "demo": "tablesdb\/delete-index.md", @@ -35997,7 +37289,7 @@ "x-appwrite": { "method": "listTableLogs", "group": "tables", - "weight": 383, + "weight": 389, "cookies": false, "type": "", "demo": "tablesdb\/list-table-logs.md", @@ -36078,7 +37370,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 432, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -36162,7 +37454,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 424, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -36330,7 +37622,7 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 429, "cookies": false, "type": "", "demo": "tablesdb\/upsert-rows.md", @@ -36450,7 +37742,7 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 427, "cookies": false, "type": "", "demo": "tablesdb\/update-rows.md", @@ -36545,7 +37837,7 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 431, "cookies": false, "type": "", "demo": "tablesdb\/delete-rows.md", @@ -36634,7 +37926,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 425, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -36726,7 +38018,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 428, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -36860,7 +38152,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 426, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -36959,7 +38251,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 430, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -37039,7 +38331,7 @@ "x-appwrite": { "method": "listRowLogs", "group": "logs", - "weight": 421, + "weight": 433, "cookies": false, "type": "", "demo": "tablesdb\/list-row-logs.md", @@ -37130,7 +38422,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 435, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -37241,7 +38533,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 434, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", @@ -37350,7 +38642,7 @@ "x-appwrite": { "method": "getTableUsage", "group": null, - "weight": 384, + "weight": 390, "cookies": false, "type": "", "demo": "tablesdb\/get-table-usage.md", @@ -37439,7 +38731,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 376, + "weight": 382, "cookies": false, "type": "", "demo": "tablesdb\/get-usage.md", @@ -38624,7 +39916,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -38704,7 +39996,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -38788,7 +40080,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -38848,7 +40140,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -38919,7 +40211,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -44968,6 +46260,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -45054,6 +46355,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -45930,6 +47240,225 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[0, 0]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[0, 0], [1, 1]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "table": { "description": "Table", "type": "object", @@ -46011,6 +47540,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -46097,6 +47635,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -46973,6 +48520,225 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[0, 0]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[0, 0], [1, 1]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "index": { "description": "Index", "type": "object", diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index 9293ce6928..5fb2c27cb9 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -7358,6 +7358,660 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 362, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric 2d point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 363, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 364, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 365, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 366, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7384,7 +8038,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -7522,7 +8176,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -7646,7 +8300,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -7765,7 +8419,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -7876,7 +8530,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 372, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8173,7 +8827,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -9517,7 +10171,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 376, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -9601,7 +10255,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 373, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -9666,7 +10320,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -9733,7 +10388,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 374, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -9807,7 +10462,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 375, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -9886,7 +10541,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 444, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -9959,7 +10614,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -10211,7 +10866,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -10261,7 +10916,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -10312,7 +10967,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -10372,7 +11027,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -10620,7 +11275,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -10682,7 +11337,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -10760,7 +11415,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 451, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -10841,7 +11496,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 448, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -10934,7 +11589,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -11020,7 +11675,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -11127,7 +11782,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -11224,7 +11879,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -11287,7 +11942,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -11355,7 +12010,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 455, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -11441,7 +12096,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -11509,7 +12164,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -11584,7 +12239,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -11703,7 +12358,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -11769,7 +12424,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -11837,7 +12492,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 466, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -11897,7 +12552,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -11988,7 +12643,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 465, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -12056,7 +12711,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 467, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -12149,7 +12804,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 468, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -19254,7 +19909,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 473, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -19327,7 +19982,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -19595,7 +20250,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -19645,7 +20300,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 499, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -19696,7 +20351,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -19756,7 +20411,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -20019,7 +20674,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -20081,7 +20736,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -20159,7 +20814,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -20240,7 +20895,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 477, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -20341,7 +20996,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -20421,7 +21076,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -20528,7 +21183,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -20626,7 +21281,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 480, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -20689,7 +21344,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -20757,7 +21412,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 484, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -20843,7 +21498,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -20911,7 +21566,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -20983,7 +21638,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -21048,7 +21703,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -21116,7 +21771,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -21176,7 +21831,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -21267,7 +21922,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -21335,7 +21990,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -21428,7 +22083,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -22736,7 +23391,7 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 381, "cookies": false, "type": "", "demo": "tablesdb\/list.md", @@ -22809,7 +23464,7 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 377, "cookies": false, "type": "", "demo": "tablesdb\/create.md", @@ -22892,7 +23547,7 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 378, "cookies": false, "type": "", "demo": "tablesdb\/get.md", @@ -22952,7 +23607,7 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 379, "cookies": false, "type": "", "demo": "tablesdb\/update.md", @@ -23031,7 +23686,7 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 380, "cookies": false, "type": "", "demo": "tablesdb\/delete.md", @@ -23091,7 +23746,7 @@ "x-appwrite": { "method": "listTables", "group": "tables", - "weight": 382, + "weight": 388, "cookies": false, "type": "", "demo": "tablesdb\/list-tables.md", @@ -23175,7 +23830,7 @@ "x-appwrite": { "method": "createTable", "group": "tables", - "weight": 378, + "weight": 384, "cookies": false, "type": "", "demo": "tablesdb\/create-table.md", @@ -23284,7 +23939,7 @@ "x-appwrite": { "method": "getTable", "group": "tables", - "weight": 379, + "weight": 385, "cookies": false, "type": "", "demo": "tablesdb\/get-table.md", @@ -23355,7 +24010,7 @@ "x-appwrite": { "method": "updateTable", "group": "tables", - "weight": 380, + "weight": 386, "cookies": false, "type": "", "demo": "tablesdb\/update-table.md", @@ -23460,7 +24115,7 @@ "x-appwrite": { "method": "deleteTable", "group": "tables", - "weight": 381, + "weight": 387, "cookies": false, "type": "", "demo": "tablesdb\/delete-table.md", @@ -23531,7 +24186,7 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 393, "cookies": false, "type": "", "demo": "tablesdb\/list-columns.md", @@ -23616,7 +24271,7 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 394, "cookies": false, "type": "", "demo": "tablesdb\/create-boolean-column.md", @@ -23726,7 +24381,7 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 395, "cookies": false, "type": "", "demo": "tablesdb\/update-boolean-column.md", @@ -23838,7 +24493,7 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 396, "cookies": false, "type": "", "demo": "tablesdb\/create-datetime-column.md", @@ -23948,7 +24603,7 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 397, "cookies": false, "type": "", "demo": "tablesdb\/update-datetime-column.md", @@ -24060,7 +24715,7 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 398, "cookies": false, "type": "", "demo": "tablesdb\/create-email-column.md", @@ -24170,7 +24825,7 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 399, "cookies": false, "type": "", "demo": "tablesdb\/update-email-column.md", @@ -24282,7 +24937,7 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 400, "cookies": false, "type": "", "demo": "tablesdb\/create-enum-column.md", @@ -24402,7 +25057,7 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 401, "cookies": false, "type": "", "demo": "tablesdb\/update-enum-column.md", @@ -24524,7 +25179,7 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 402, "cookies": false, "type": "", "demo": "tablesdb\/create-float-column.md", @@ -24646,7 +25301,7 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/update-float-column.md", @@ -24770,7 +25425,7 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/create-integer-column.md", @@ -24892,7 +25547,7 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-integer-column.md", @@ -25016,7 +25671,7 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 406, "cookies": false, "type": "", "demo": "tablesdb\/create-ip-column.md", @@ -25126,7 +25781,7 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/update-ip-column.md", @@ -25212,6 +25867,654 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 409, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 410, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 411, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 412, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 413, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -25238,7 +26541,7 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/create-relationship-column.md", @@ -25375,7 +26678,7 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/create-string-column.md", @@ -25498,7 +26801,7 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-string-column.md", @@ -25616,7 +26919,7 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/create-url-column.md", @@ -25726,7 +27029,7 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/update-url-column.md", @@ -25867,7 +27170,7 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 391, "cookies": false, "type": "", "demo": "tablesdb\/get-column.md", @@ -25940,7 +27243,7 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 392, "cookies": false, "type": "", "demo": "tablesdb\/delete-column.md", @@ -26020,7 +27323,7 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/update-relationship-column.md", @@ -26126,7 +27429,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 423, "cookies": false, "type": "", "demo": "tablesdb\/list-indexes.md", @@ -26209,7 +27512,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-index.md", @@ -26273,7 +27576,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -26340,7 +27644,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 421, "cookies": false, "type": "", "demo": "tablesdb\/get-index.md", @@ -26413,7 +27717,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 422, "cookies": false, "type": "", "demo": "tablesdb\/delete-index.md", @@ -26491,7 +27795,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 432, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -26577,7 +27881,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 424, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -26749,7 +28053,7 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 429, "cookies": false, "type": "", "demo": "tablesdb\/upsert-rows.md", @@ -26871,7 +28175,7 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 427, "cookies": false, "type": "", "demo": "tablesdb\/update-rows.md", @@ -26967,7 +28271,7 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 431, "cookies": false, "type": "", "demo": "tablesdb\/delete-rows.md", @@ -27057,7 +28361,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 425, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -27151,7 +28455,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 428, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -27288,7 +28592,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 426, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -27389,7 +28693,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 430, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -27473,7 +28777,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 435, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -27586,7 +28890,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 434, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", @@ -28732,7 +30036,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -28813,7 +30117,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -28898,7 +30202,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -28959,7 +30263,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -29031,7 +30335,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -33917,6 +35221,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -34003,6 +35316,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -34879,6 +36201,225 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[0, 0]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[0, 0], [1, 1]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "table": { "description": "Table", "type": "object", @@ -34960,6 +36501,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -35046,6 +36596,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -35922,6 +37481,225 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[0, 0]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[0, 0], [1, 1]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "index": { "description": "Index", "type": "object", diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index efeb167a24..ea98bd764b 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -5845,7 +5845,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -5918,7 +5918,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -6035,7 +6035,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -7573,7 +7573,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 432, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -7657,7 +7657,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 424, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -7799,7 +7799,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 425, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -7891,7 +7891,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 428, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -8025,7 +8025,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 426, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -8124,7 +8124,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 430, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -8206,7 +8206,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 435, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -8317,7 +8317,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 434, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 788279b595..03435662b0 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -5052,7 +5052,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 488, + "weight": 500, "cookies": false, "type": "", "demo": "console\/get-resource.md", @@ -7906,6 +7906,654 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 362, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric 2d point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 363, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 364, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 365, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 366, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7932,7 +8580,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -8069,7 +8717,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -8192,7 +8840,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -8310,7 +8958,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -8420,7 +9068,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 372, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8714,7 +9362,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -10124,7 +10772,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 376, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -10207,7 +10855,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 373, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -10271,7 +10919,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -10338,7 +10987,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 374, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -10411,7 +11060,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 375, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -10875,7 +11524,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 444, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -10947,7 +11596,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -11198,7 +11847,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -11247,7 +11896,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -11297,7 +11946,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 458, + "weight": 470, "cookies": false, "type": "", "demo": "functions\/list-templates.md", @@ -11391,7 +12040,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 457, + "weight": 469, "cookies": false, "type": "", "demo": "functions\/get-template.md", @@ -11449,7 +12098,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 451, + "weight": 463, "cookies": false, "type": "", "demo": "functions\/list-usage.md", @@ -11519,7 +12168,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -11578,7 +12227,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -11825,7 +12474,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -11886,7 +12535,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -11963,7 +12612,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 451, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -12043,7 +12692,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 448, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -12135,7 +12784,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -12220,7 +12869,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -12326,7 +12975,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -12422,7 +13071,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -12484,7 +13133,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -12551,7 +13200,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 455, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -12636,7 +13285,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -12703,7 +13352,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -12776,7 +13425,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -12893,7 +13542,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -12957,7 +13606,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -13024,7 +13673,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 450, + "weight": 462, "cookies": false, "type": "", "demo": "functions\/get-usage.md", @@ -13102,7 +13751,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 466, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -13161,7 +13810,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -13251,7 +13900,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 465, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -13318,7 +13967,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 467, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -13410,7 +14059,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 468, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -23584,7 +24233,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 427, + "weight": 439, "cookies": false, "type": "", "demo": "projects\/list-dev-keys.md", @@ -23654,7 +24303,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 424, + "weight": 436, "cookies": false, "type": "", "demo": "projects\/create-dev-key.md", @@ -23737,7 +24386,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 426, + "weight": 438, "cookies": false, "type": "", "demo": "projects\/get-dev-key.md", @@ -23803,7 +24452,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 425, + "weight": 437, "cookies": false, "type": "", "demo": "projects\/update-dev-key.md", @@ -23889,7 +24538,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 428, + "weight": 440, "cookies": false, "type": "", "demo": "projects\/delete-dev-key.md", @@ -27775,7 +28424,7 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 489, + "weight": 501, "cookies": false, "type": "", "demo": "proxy\/create-api-rule.md", @@ -27845,7 +28494,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 491, + "weight": 503, "cookies": false, "type": "", "demo": "proxy\/create-function-rule.md", @@ -27928,7 +28577,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 492, + "weight": 504, "cookies": false, "type": "", "demo": "proxy\/create-redirect-rule.md", @@ -28048,7 +28697,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 490, + "weight": 502, "cookies": false, "type": "", "demo": "proxy\/create-site-rule.md", @@ -28300,7 +28949,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 473, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -28372,7 +29021,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -28639,7 +29288,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -28688,7 +29337,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 499, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -28738,7 +29387,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 483, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/list-templates.md", @@ -28832,7 +29481,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 484, + "weight": 496, "cookies": false, "type": "", "demo": "sites\/get-template.md", @@ -28890,7 +29539,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 485, + "weight": 497, "cookies": false, "type": "", "demo": "sites\/list-usage.md", @@ -28960,7 +29609,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -29019,7 +29668,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -29281,7 +29930,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -29342,7 +29991,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -29419,7 +30068,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -29499,7 +30148,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 477, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -29599,7 +30248,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -29678,7 +30327,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -29784,7 +30433,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -29881,7 +30530,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 480, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -29943,7 +30592,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -30010,7 +30659,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 484, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -30095,7 +30744,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -30162,7 +30811,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -30233,7 +30882,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -30297,7 +30946,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -30364,7 +31013,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 486, + "weight": 498, "cookies": false, "type": "", "demo": "sites\/get-usage.md", @@ -30442,7 +31091,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -30501,7 +31150,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -30591,7 +31240,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -30658,7 +31307,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -30750,7 +31399,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -32184,7 +32833,7 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 381, "cookies": false, "type": "", "demo": "tablesdb\/list.md", @@ -32256,7 +32905,7 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 377, "cookies": false, "type": "", "demo": "tablesdb\/create.md", @@ -32338,7 +32987,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 377, + "weight": 383, "cookies": false, "type": "", "demo": "tablesdb\/list-usage.md", @@ -32433,7 +33082,7 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 378, "cookies": false, "type": "", "demo": "tablesdb\/get.md", @@ -32492,7 +33141,7 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 379, "cookies": false, "type": "", "demo": "tablesdb\/update.md", @@ -32570,7 +33219,7 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 380, "cookies": false, "type": "", "demo": "tablesdb\/delete.md", @@ -32629,7 +33278,7 @@ "x-appwrite": { "method": "listTables", "group": "tables", - "weight": 382, + "weight": 388, "cookies": false, "type": "", "demo": "tablesdb\/list-tables.md", @@ -32712,7 +33361,7 @@ "x-appwrite": { "method": "createTable", "group": "tables", - "weight": 378, + "weight": 384, "cookies": false, "type": "", "demo": "tablesdb\/create-table.md", @@ -32820,7 +33469,7 @@ "x-appwrite": { "method": "getTable", "group": "tables", - "weight": 379, + "weight": 385, "cookies": false, "type": "", "demo": "tablesdb\/get-table.md", @@ -32890,7 +33539,7 @@ "x-appwrite": { "method": "updateTable", "group": "tables", - "weight": 380, + "weight": 386, "cookies": false, "type": "", "demo": "tablesdb\/update-table.md", @@ -32994,7 +33643,7 @@ "x-appwrite": { "method": "deleteTable", "group": "tables", - "weight": 381, + "weight": 387, "cookies": false, "type": "", "demo": "tablesdb\/delete-table.md", @@ -33064,7 +33713,7 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 393, "cookies": false, "type": "", "demo": "tablesdb\/list-columns.md", @@ -33148,7 +33797,7 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 394, "cookies": false, "type": "", "demo": "tablesdb\/create-boolean-column.md", @@ -33257,7 +33906,7 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 395, "cookies": false, "type": "", "demo": "tablesdb\/update-boolean-column.md", @@ -33368,7 +34017,7 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 396, "cookies": false, "type": "", "demo": "tablesdb\/create-datetime-column.md", @@ -33477,7 +34126,7 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 397, "cookies": false, "type": "", "demo": "tablesdb\/update-datetime-column.md", @@ -33588,7 +34237,7 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 398, "cookies": false, "type": "", "demo": "tablesdb\/create-email-column.md", @@ -33697,7 +34346,7 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 399, "cookies": false, "type": "", "demo": "tablesdb\/update-email-column.md", @@ -33808,7 +34457,7 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 400, "cookies": false, "type": "", "demo": "tablesdb\/create-enum-column.md", @@ -33927,7 +34576,7 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 401, "cookies": false, "type": "", "demo": "tablesdb\/update-enum-column.md", @@ -34048,7 +34697,7 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 402, "cookies": false, "type": "", "demo": "tablesdb\/create-float-column.md", @@ -34169,7 +34818,7 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/update-float-column.md", @@ -34292,7 +34941,7 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/create-integer-column.md", @@ -34413,7 +35062,7 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-integer-column.md", @@ -34536,7 +35185,7 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 406, "cookies": false, "type": "", "demo": "tablesdb\/create-ip-column.md", @@ -34645,7 +35294,7 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/update-ip-column.md", @@ -34730,6 +35379,648 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 409, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 410, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 411, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 412, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 413, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -34756,7 +36047,7 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/create-relationship-column.md", @@ -34892,7 +36183,7 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/create-string-column.md", @@ -35014,7 +36305,7 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-string-column.md", @@ -35131,7 +36422,7 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/create-url-column.md", @@ -35240,7 +36531,7 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/update-url-column.md", @@ -35380,7 +36671,7 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 391, "cookies": false, "type": "", "demo": "tablesdb\/get-column.md", @@ -35452,7 +36743,7 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 392, "cookies": false, "type": "", "demo": "tablesdb\/delete-column.md", @@ -35531,7 +36822,7 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/update-relationship-column.md", @@ -35636,7 +36927,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 423, "cookies": false, "type": "", "demo": "tablesdb\/list-indexes.md", @@ -35718,7 +37009,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-index.md", @@ -35781,7 +37072,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -35848,7 +37140,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 421, "cookies": false, "type": "", "demo": "tablesdb\/get-index.md", @@ -35920,7 +37212,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 422, "cookies": false, "type": "", "demo": "tablesdb\/delete-index.md", @@ -35997,7 +37289,7 @@ "x-appwrite": { "method": "listTableLogs", "group": "tables", - "weight": 383, + "weight": 389, "cookies": false, "type": "", "demo": "tablesdb\/list-table-logs.md", @@ -36078,7 +37370,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 432, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -36162,7 +37454,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 424, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -36330,7 +37622,7 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 429, "cookies": false, "type": "", "demo": "tablesdb\/upsert-rows.md", @@ -36450,7 +37742,7 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 427, "cookies": false, "type": "", "demo": "tablesdb\/update-rows.md", @@ -36545,7 +37837,7 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 431, "cookies": false, "type": "", "demo": "tablesdb\/delete-rows.md", @@ -36634,7 +37926,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 425, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -36726,7 +38018,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 428, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -36860,7 +38152,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 426, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -36959,7 +38251,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 430, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -37039,7 +38331,7 @@ "x-appwrite": { "method": "listRowLogs", "group": "logs", - "weight": 421, + "weight": 433, "cookies": false, "type": "", "demo": "tablesdb\/list-row-logs.md", @@ -37130,7 +38422,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 435, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -37241,7 +38533,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 434, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", @@ -37350,7 +38642,7 @@ "x-appwrite": { "method": "getTableUsage", "group": null, - "weight": 384, + "weight": 390, "cookies": false, "type": "", "demo": "tablesdb\/get-table-usage.md", @@ -37439,7 +38731,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 376, + "weight": 382, "cookies": false, "type": "", "demo": "tablesdb\/get-usage.md", @@ -38624,7 +39916,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -38704,7 +39996,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -38788,7 +40080,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -38848,7 +40140,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -38919,7 +40211,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -44968,6 +46260,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -45054,6 +46355,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -45930,6 +47240,225 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[0, 0]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[0, 0], [1, 1]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "table": { "description": "Table", "type": "object", @@ -46011,6 +47540,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -46097,6 +47635,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -46973,6 +48520,225 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[0, 0]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[0, 0], [1, 1]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "index": { "description": "Index", "type": "object", diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index 9293ce6928..5fb2c27cb9 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -7358,6 +7358,660 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 362, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric 2d point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 363, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 364, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 365, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 366, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for attribute when not provided, as JSON string. Cannot be set when attribute is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7384,7 +8038,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -7522,7 +8176,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -7646,7 +8300,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -7765,7 +8419,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -7876,7 +8530,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 372, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8173,7 +8827,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -9517,7 +10171,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 376, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -9601,7 +10255,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 373, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -9666,7 +10320,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -9733,7 +10388,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 374, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -9807,7 +10462,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 375, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -9886,7 +10541,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 444, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -9959,7 +10614,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -10211,7 +10866,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -10261,7 +10916,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -10312,7 +10967,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -10372,7 +11027,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -10620,7 +11275,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -10682,7 +11337,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -10760,7 +11415,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 451, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -10841,7 +11496,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 448, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -10934,7 +11589,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -11020,7 +11675,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -11127,7 +11782,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -11224,7 +11879,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -11287,7 +11942,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -11355,7 +12010,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 455, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -11441,7 +12096,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -11509,7 +12164,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -11584,7 +12239,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -11703,7 +12358,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -11769,7 +12424,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -11837,7 +12492,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 466, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -11897,7 +12552,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -11988,7 +12643,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 465, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -12056,7 +12711,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 467, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -12149,7 +12804,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 468, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -19254,7 +19909,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 473, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -19327,7 +19982,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -19595,7 +20250,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -19645,7 +20300,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 499, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -19696,7 +20351,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -19756,7 +20411,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -20019,7 +20674,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -20081,7 +20736,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -20159,7 +20814,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -20240,7 +20895,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 477, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -20341,7 +20996,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -20421,7 +21076,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -20528,7 +21183,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -20626,7 +21281,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 480, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -20689,7 +21344,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -20757,7 +21412,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 484, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -20843,7 +21498,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -20911,7 +21566,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -20983,7 +21638,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -21048,7 +21703,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -21116,7 +21771,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -21176,7 +21831,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -21267,7 +21922,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -21335,7 +21990,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -21428,7 +22083,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -22736,7 +23391,7 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 381, "cookies": false, "type": "", "demo": "tablesdb\/list.md", @@ -22809,7 +23464,7 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 377, "cookies": false, "type": "", "demo": "tablesdb\/create.md", @@ -22892,7 +23547,7 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 378, "cookies": false, "type": "", "demo": "tablesdb\/get.md", @@ -22952,7 +23607,7 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 379, "cookies": false, "type": "", "demo": "tablesdb\/update.md", @@ -23031,7 +23686,7 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 380, "cookies": false, "type": "", "demo": "tablesdb\/delete.md", @@ -23091,7 +23746,7 @@ "x-appwrite": { "method": "listTables", "group": "tables", - "weight": 382, + "weight": 388, "cookies": false, "type": "", "demo": "tablesdb\/list-tables.md", @@ -23175,7 +23830,7 @@ "x-appwrite": { "method": "createTable", "group": "tables", - "weight": 378, + "weight": 384, "cookies": false, "type": "", "demo": "tablesdb\/create-table.md", @@ -23284,7 +23939,7 @@ "x-appwrite": { "method": "getTable", "group": "tables", - "weight": 379, + "weight": 385, "cookies": false, "type": "", "demo": "tablesdb\/get-table.md", @@ -23355,7 +24010,7 @@ "x-appwrite": { "method": "updateTable", "group": "tables", - "weight": 380, + "weight": 386, "cookies": false, "type": "", "demo": "tablesdb\/update-table.md", @@ -23460,7 +24115,7 @@ "x-appwrite": { "method": "deleteTable", "group": "tables", - "weight": 381, + "weight": 387, "cookies": false, "type": "", "demo": "tablesdb\/delete-table.md", @@ -23531,7 +24186,7 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 393, "cookies": false, "type": "", "demo": "tablesdb\/list-columns.md", @@ -23616,7 +24271,7 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 394, "cookies": false, "type": "", "demo": "tablesdb\/create-boolean-column.md", @@ -23726,7 +24381,7 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 395, "cookies": false, "type": "", "demo": "tablesdb\/update-boolean-column.md", @@ -23838,7 +24493,7 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 396, "cookies": false, "type": "", "demo": "tablesdb\/create-datetime-column.md", @@ -23948,7 +24603,7 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 397, "cookies": false, "type": "", "demo": "tablesdb\/update-datetime-column.md", @@ -24060,7 +24715,7 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 398, "cookies": false, "type": "", "demo": "tablesdb\/create-email-column.md", @@ -24170,7 +24825,7 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 399, "cookies": false, "type": "", "demo": "tablesdb\/update-email-column.md", @@ -24282,7 +24937,7 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 400, "cookies": false, "type": "", "demo": "tablesdb\/create-enum-column.md", @@ -24402,7 +25057,7 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 401, "cookies": false, "type": "", "demo": "tablesdb\/update-enum-column.md", @@ -24524,7 +25179,7 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 402, "cookies": false, "type": "", "demo": "tablesdb\/create-float-column.md", @@ -24646,7 +25301,7 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 403, "cookies": false, "type": "", "demo": "tablesdb\/update-float-column.md", @@ -24770,7 +25425,7 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 404, "cookies": false, "type": "", "demo": "tablesdb\/create-integer-column.md", @@ -24892,7 +25547,7 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 405, "cookies": false, "type": "", "demo": "tablesdb\/update-integer-column.md", @@ -25016,7 +25671,7 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 406, "cookies": false, "type": "", "demo": "tablesdb\/create-ip-column.md", @@ -25126,7 +25781,7 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 407, "cookies": false, "type": "", "demo": "tablesdb\/update-ip-column.md", @@ -25212,6 +25867,654 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 409, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 410, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 411, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 412, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 413, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "string", + "description": "Default value for column when not provided, as JSON string. Cannot be set when column is required.", + "default": null, + "x-example": null, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -25238,7 +26541,7 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 414, "cookies": false, "type": "", "demo": "tablesdb\/create-relationship-column.md", @@ -25375,7 +26678,7 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 416, "cookies": false, "type": "", "demo": "tablesdb\/create-string-column.md", @@ -25498,7 +26801,7 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 417, "cookies": false, "type": "", "demo": "tablesdb\/update-string-column.md", @@ -25616,7 +26919,7 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 418, "cookies": false, "type": "", "demo": "tablesdb\/create-url-column.md", @@ -25726,7 +27029,7 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 419, "cookies": false, "type": "", "demo": "tablesdb\/update-url-column.md", @@ -25867,7 +27170,7 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 391, "cookies": false, "type": "", "demo": "tablesdb\/get-column.md", @@ -25940,7 +27243,7 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 392, "cookies": false, "type": "", "demo": "tablesdb\/delete-column.md", @@ -26020,7 +27323,7 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 415, "cookies": false, "type": "", "demo": "tablesdb\/update-relationship-column.md", @@ -26126,7 +27429,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 423, "cookies": false, "type": "", "demo": "tablesdb\/list-indexes.md", @@ -26209,7 +27512,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 420, "cookies": false, "type": "", "demo": "tablesdb\/create-index.md", @@ -26273,7 +27576,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -26340,7 +27644,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 421, "cookies": false, "type": "", "demo": "tablesdb\/get-index.md", @@ -26413,7 +27717,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 422, "cookies": false, "type": "", "demo": "tablesdb\/delete-index.md", @@ -26491,7 +27795,7 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 432, "cookies": false, "type": "", "demo": "tablesdb\/list-rows.md", @@ -26577,7 +27881,7 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 424, "cookies": false, "type": "", "demo": "tablesdb\/create-row.md", @@ -26749,7 +28053,7 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 429, "cookies": false, "type": "", "demo": "tablesdb\/upsert-rows.md", @@ -26871,7 +28175,7 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 427, "cookies": false, "type": "", "demo": "tablesdb\/update-rows.md", @@ -26967,7 +28271,7 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 431, "cookies": false, "type": "", "demo": "tablesdb\/delete-rows.md", @@ -27057,7 +28361,7 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 425, "cookies": false, "type": "", "demo": "tablesdb\/get-row.md", @@ -27151,7 +28455,7 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 428, "cookies": false, "type": "", "demo": "tablesdb\/upsert-row.md", @@ -27288,7 +28592,7 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 426, "cookies": false, "type": "", "demo": "tablesdb\/update-row.md", @@ -27389,7 +28693,7 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 430, "cookies": false, "type": "", "demo": "tablesdb\/delete-row.md", @@ -27473,7 +28777,7 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 435, "cookies": false, "type": "", "demo": "tablesdb\/decrement-row-column.md", @@ -27586,7 +28890,7 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 434, "cookies": false, "type": "", "demo": "tablesdb\/increment-row-column.md", @@ -28732,7 +30036,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -28813,7 +30117,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -28898,7 +30202,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -28959,7 +30263,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -29031,7 +30335,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -33917,6 +35221,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -34003,6 +35316,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -34879,6 +36201,225 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[0, 0]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[0, 0], [1, 1]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "table": { "description": "Table", "type": "object", @@ -34960,6 +36501,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -35046,6 +36596,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -35922,6 +37481,225 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[0, 0]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[0, 0]" + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[0, 0], [1, 1]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[0, 0], [1, 1]]" + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "object", + "additionalProperties": true, + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": "[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]" + } + }, "index": { "description": "Index", "type": "object", diff --git a/src/Appwrite/GraphQL/Types/Mapper.php b/src/Appwrite/GraphQL/Types/Mapper.php index 244a0c0ccb..214dbbb976 100644 --- a/src/Appwrite/GraphQL/Types/Mapper.php +++ b/src/Appwrite/GraphQL/Types/Mapper.php @@ -57,8 +57,7 @@ class Mapper 'datetime' => Type::string(), 'json' => Types::json(), 'none' => Types::json(), - 'any' => Types::json(), - 'spatial' => Types::json(), + 'any' => Types::json() ]; foreach ($defaults as $type => $default) { diff --git a/src/Appwrite/Utopia/Response/Model.php b/src/Appwrite/Utopia/Response/Model.php index f40c89f093..80c2c4d620 100644 --- a/src/Appwrite/Utopia/Response/Model.php +++ b/src/Appwrite/Utopia/Response/Model.php @@ -15,7 +15,6 @@ abstract class Model public const TYPE_DATETIME_EXAMPLE = '2020-10-15T06:38:00.000+00:00'; public const TYPE_RELATIONSHIP = 'relationship'; public const TYPE_PAYLOAD = 'payload'; - public const TYPE_SPATIAL = 'spatial'; /** * @var bool diff --git a/src/Appwrite/Utopia/Response/Model/AttributeLine.php b/src/Appwrite/Utopia/Response/Model/AttributeLine.php index a4d9c75672..d5eab30ca6 100644 --- a/src/Appwrite/Utopia/Response/Model/AttributeLine.php +++ b/src/Appwrite/Utopia/Response/Model/AttributeLine.php @@ -12,7 +12,7 @@ class AttributeLine extends Attribute $this ->addRule('default', [ - 'type' => self::TYPE_SPATIAL, + 'type' => self::TYPE_JSON, 'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.', 'default' => null, 'required' => false, diff --git a/src/Appwrite/Utopia/Response/Model/AttributePoint.php b/src/Appwrite/Utopia/Response/Model/AttributePoint.php index 47b83cc58b..e44ecf96d0 100644 --- a/src/Appwrite/Utopia/Response/Model/AttributePoint.php +++ b/src/Appwrite/Utopia/Response/Model/AttributePoint.php @@ -12,7 +12,7 @@ class AttributePoint extends Attribute $this ->addRule('default', [ - 'type' => self::TYPE_SPATIAL, + 'type' => self::TYPE_JSON, 'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.', 'default' => null, 'required' => false, diff --git a/src/Appwrite/Utopia/Response/Model/AttributePolygon.php b/src/Appwrite/Utopia/Response/Model/AttributePolygon.php index 8ef7f4ab73..32708f6470 100644 --- a/src/Appwrite/Utopia/Response/Model/AttributePolygon.php +++ b/src/Appwrite/Utopia/Response/Model/AttributePolygon.php @@ -12,7 +12,7 @@ class AttributePolygon extends Attribute $this ->addRule('default', [ - 'type' => self::TYPE_SPATIAL, + 'type' => self::TYPE_JSON, 'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.', 'default' => null, 'required' => false, diff --git a/src/Appwrite/Utopia/Response/Model/ColumnLine.php b/src/Appwrite/Utopia/Response/Model/ColumnLine.php index 01a6c6fe02..951e787086 100644 --- a/src/Appwrite/Utopia/Response/Model/ColumnLine.php +++ b/src/Appwrite/Utopia/Response/Model/ColumnLine.php @@ -12,7 +12,7 @@ class ColumnLine extends Column $this ->addRule('default', [ - 'type' => self::TYPE_SPATIAL, + 'type' => self::TYPE_JSON, 'description' => 'Default value for column when not provided. Cannot be set when column is required.', 'default' => null, 'required' => false, diff --git a/src/Appwrite/Utopia/Response/Model/ColumnPoint.php b/src/Appwrite/Utopia/Response/Model/ColumnPoint.php index 6ec5229011..2e548976aa 100644 --- a/src/Appwrite/Utopia/Response/Model/ColumnPoint.php +++ b/src/Appwrite/Utopia/Response/Model/ColumnPoint.php @@ -12,7 +12,7 @@ class ColumnPoint extends Column $this ->addRule('default', [ - 'type' => self::TYPE_SPATIAL, + 'type' => self::TYPE_JSON, 'description' => 'Default value for column when not provided. Cannot be set when column is required.', 'default' => null, 'required' => false, diff --git a/src/Appwrite/Utopia/Response/Model/ColumnPolygon.php b/src/Appwrite/Utopia/Response/Model/ColumnPolygon.php index 6a9a14d548..1efcd1199e 100644 --- a/src/Appwrite/Utopia/Response/Model/ColumnPolygon.php +++ b/src/Appwrite/Utopia/Response/Model/ColumnPolygon.php @@ -12,7 +12,7 @@ class ColumnPolygon extends Column $this ->addRule('default', [ - 'type' => self::TYPE_SPATIAL, + 'type' => self::TYPE_JSON, 'description' => 'Default value for column when not provided. Cannot be set when column is required.', 'default' => null, 'required' => false,