{"openapi": "3.1.0", "info": {"title": "AITable API Reference manual", "description": {"$ref": "./api/openapi.md"}, "version": "beta", "contact": {}}, "tags": [{"name": "Record", "description": {"$ref": "./api/records.md"}}, {"name": "Attachment", "description": {"$ref": "./api/attachments.md"}}, {"name": "Field", "description": {"$ref": "./api/fields.md"}}, {"name": "Datasheet", "description": {"$ref": "./api/datasheets.md"}}, {"name": "View", "description": {"$ref": "./api/views.md"}}, {"name": "Space", "description": {"$ref": "./api/spaces.md"}}, {"name": "Node", "description": {"$ref": "./api/nodes.md"}}, {"name": "Member", "description": {"$ref": "./api/members.md"}}, {"name": "Team", "description": {"$ref": "./api/teams.md"}}, {"name": "Role", "description": {"$ref": "./api/roles.md"}}, {"name": "AI", "description": {"$ref": "./api/ai.md"}}], "x-tagGroups": [{"name": "BASIC", "tags": ["Record", "Field", "View", "Datasheet", "Attachment"]}, {"name": "ADVANCED", "tags": ["Space", "Node", "AI"]}, {"name": "CONTACTS", "tags": ["Member", "Team", "Role"]}], "servers": [{"url": "https://aitable.ai", "description": "AITable API server address"}], "components": {"schemas": {"ApiRecordDto": {"type": "object", "properties": {"recordId": {"type": "string", "example": "recV3ElniQavTNyJG", "description": "record ID"}, "fields": {"type": "object", "description": "The data of the corresponding field in a record, the return format is {'fieldName': 'fielValue'}, please refer to [Record](#tag/Record) for details"}, "createdAt": {"type": "number", "description": "The creation time of the record, in timestamp format"}, "updatedAt": {"type": "number", "description": "The modification time of the record, in timestamp format"}}, "required": ["recordId", "fields", "createdAt", "updatedAt"]}, "PageVo": {"type": "object", "properties": {"pageNum": {"type": "number", "example": 1, "description": "The current pagination number."}, "records": {"description": "All record data returned by the current page, the data structure of each record can refer to [here](#tag/Record)", "type": "array", "items": {"$ref": "#/components/schemas/ApiRecordDto"}}, "pageSize": {"type": "number", "example": 100, "description": "The actual number of records returned per page.If 'pageSize=100' is specified when requesting, but the actual number of records is only 35, 35 is returned."}, "total": {"type": "number", "example": 500, "description": "The total number of records that meet the filter criteria."}}, "required": ["pageNum", "records", "pageSize", "total"]}, "RecordPageVo": {"type": "object", "properties": {"success": {"type": "boolean", "example": true, "description": "The global status value. If it is false, it indicates that a business error or interface call error has occurred."}, "code": {"type": "number", "example": 200, "description": "Business status code, 200 indicates that the business request is successful."}, "message": {"type": "string", "example": "SUCCESS", "description": "Return information, and return error information when executing an error."}, "data": {"description": "The returned business data body.", "allOf": [{"$ref": "#/components/schemas/PageVo"}]}}, "required": ["success", "code", "message", "data"]}, "MetaFieldItem": {"type": "object", "properties": {"id": {"type": "string", "example": "fidV3ElniQavTNyJG", "description": "Field ID."}, "name": {"type": "string", "example": "Title", "description": "Field name."}, "type": {"type": "string", "example": "SingleText", "description": "For field type, see [#field-types-and-attributes](#field-types-and-attributes) for possible values."}, "desc": {"type": "string", "example": "desc", "description": "Field description, the column description."}, "property": {"type": "object", "description": "Field attributes. Different fields have different attributes. Please refer to the description of various fields in the [#field-types-and-attributes](#field-types-and-attributes) section for details.", "properties": {"defaultValue": {"type": "string", "example": "To be supplemented"}}}}, "required": ["id", "name", "type"]}, "FieldCreateRo": {"type": "object", "properties": {"fields": {"type": "object", "description": "In the newly created record, specify which fields and corresponding values need to be created.", "example": {"Currency": 5.53, "Single choice": "Single choice 2"}}}, "required": ["fields"]}, "SingleText": {"description": "Single line text", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "Single line text attribute", "properties": {"defaultValue": {"type": "string", "description": "Default text content", "example": "Default text text"}}}}}]}, "Text": {"description": "Multiline Text", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}]}, "Attachment": {"description": "attachment", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}]}, "URL": {"description": "url", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}]}, "Phone": {"description": "phone", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}]}, "Email": {"description": "email", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}]}, "AutoNumber": {"description": "Autoincrement number", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}]}, "CreatedBy": {"description": "Created by", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}]}, "SelectPropertyOption": {"type": "object", "description": "Option Configuration", "required": ["name"], "properties": {"name": {"type": "string", "description": "Option Name"}, "color": {"type": "string", "description": "Option color, see the name of [color value list](/widget/colors) for details", "example": "deepPurple_0"}}}, "SelectProperty": {"required": ["options"], "properties": {"options": {"type": "array", "items": {"$ref": "#/components/schemas/SelectPropertyOption"}}, "defaultValue": {"type": "string", "description": "Default option, corresponding to the name of an option in options"}}}, "SingleSelect": {"description": "Single choice", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "Single choice attribute", "allOf": [{"$ref": "#/components/schemas/SelectProperty"}]}}}]}, "MultiSelect": {"description": "Multiple choice", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "Multiple selection attribute", "allOf": [{"$ref": "#/components/schemas/SelectProperty"}]}}}]}, "Number": {"description": "Number", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "Numeric Attributes", "required": ["precision"], "properties": {"defaultValue": {"type": "string", "description": "Default value, blank by default", "example": 2}, "precision": {"type": "number", "description": "Represents the number of decimal places, that is, the numerical precision. Values are 0 (representing an integer), 1 (accurate to one decimal place), 2 (accurate to two decimal places), 3 (accurate to three decimal places), 4 (accurate to four decimal places)", "example": 0}, "symbol": {"type": "string", "description": "Numeric unit, displayed on the right side of the number, blank by default", "example": "square meter"}}}}}]}, "Currency": {"description": "Currency", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "properties": {"property": {"description": "Monetary attribute", "properties": {"defaultValue": {"type": "string", "description": "Default value, blank by default", "example": 1000}, "precision": {"type": "number", "description": "Represents the number of decimal places, that is, the numerical precision. Values are 0 (representing an integer), 1 (accurate to one decimal place), 2 (accurate to two decimal places), 3 (accurate to three decimal places), 4 (accurate to four decimal places)", "example": 2}, "symbol": {"type": "string", "description": "Numeric unit, displayed on the right side of the number, blank by default", "example": "\uffe5"}, "symbolAlign": {"type": "string", "description": "The alignment of the currency symbol (optional). The default value is Default (the currency unit is next to the left of the value). Other values are Left (the currency unit is fixed to the left) and Right (the currency unit is fixed to the right", "example": "Default"}}}}}]}, "Percent": {"description": "Percentage", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "Percent attribute", "required": ["precision"], "properties": {"defaultValue": {"type": "string", "description": "Default value, blank by default", "example": 0.85}, "precision": {"type": "number", "description": "Represents the number of decimal places, that is, the numerical precision. Values are 0 (representing an integer), 1 (accurate to one decimal place), 2 (accurate to two decimal places), 3 (accurate to three decimal places), 4 (accurate to four decimal places)", "example": 1}}}}}]}, "DateTime": {"description": "Date", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "Date attribute", "required": ["dateFormat"], "properties": {"dateFormat": {"type": "string", "enum": ["YYYY/MM/DD", "YYYY-MM-DD", "DD/MM/YYYY", "YYYY-MM", "MM-DD", "YYYY", "MM", "DD"], "description": "Date Format"}, "timeFormat": {"type": "string", "enum": ["HH:mm", "hh:mm"], "description": "Time format"}, "autoFill": {"type": "boolean", "description": "Automatically fill in the creation time when creating a new record"}, "includeTime": {"type": "boolean", "description": "Include time or not", "example": true}}}}}]}, "LastModifiedTime": {"description": "Date", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "Date attribute", "required": ["dateFormat", "collectType"], "properties": {"dateFormat": {"type": "string", "enum": ["YYYY/MM/DD", "YYYY-MM-DD", "DD/MM/YYYY", "YYYY-MM", "MM-DD", "YYYY", "MM", "DD"], "description": "Date format"}, "timeFormat": {"type": "string", "enum": ["HH:mm", "hh:mm"], "description": "Time format"}, "includeTime": {"type": "boolean", "description": "Include time or not", "example": true}, "collectType": {"type": "number", "enum": [0, 1], "description": "When the value is 0, the updater will be changed when any field is updated; when the value is 1, the updater will be changed only when the specified field is updated"}, "fieldIdCollection": {"type": "array", "description": "Filed ID Aggregate"}}}}}]}, "CreatedTime": {"description": "Date", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "Date attribute", "required": ["dateFormat"], "properties": {"dateFormat": {"type": "string", "enum": ["YYYY/MM/DD", "YYYY-MM-DD", "DD/MM/YYYY", "YYYY-MM", "MM-DD", "YYYY", "MM", "DD"], "description": "Date format"}, "timeFormat": {"type": "string", "enum": ["HH:mm", "hh:mm"], "description": "Time format"}, "includeTime": {"type": "boolean", "description": "Include time or not", "example": true}}}}}]}, "Member": {"description": "Member", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "properties": {"property": {"description": "Member Properties", "properties": {"isMulti": {"type": "boolean", "description": "Allow multiple members", "example": true}, "shouldSendMsg": {"type": "boolean", "description": "Send notification or not", "example": true}}}}}]}, "Checkbox": {"description": "Check", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "Check attribute", "required": ["icon"], "properties": {"icon": {"type": "string", "description": "For the icon representation of the selected value, please refer to [Expression Pack Enumeration](/widget/emojis)", "example": "smile"}}}}}]}, "Rating": {"description": "Rating", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "Scoring attribute", "required": ["icon", "max"], "properties": {"icon": {"type": "string", "description": "For the icon representation of the scoring value, please refer to [Expression Pack Enumeration](/widget/emojis)", "example": "star"}, "max": {"type": "number", "description": "The maximum score is 1-10", "example": 5}}}}}]}, "TwoWayLink": {"description": "Two-way link", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "Two-way link Attribute", "required": ["foreignDatasheetId"], "properties": {"foreignDatasheetId": {"type": "string", "description": "Linked datasheet ID"}, "limitToViewId": {"type": "string", "description": "Specify the view ID to filter records"}, "limitSingleRecord": {"type": "boolean", "description": "Limit the selection of only one record"}}}}}]}, "OneWayLink": {"description": "One-Way link", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "One-Way link Attribute", "required": ["foreignDatasheetId"], "properties": {"foreignDatasheetId": {"type": "string", "description": "Linked datasheet ID"}, "limitToViewId": {"type": "string", "description": "Specify the view ID to filter records"}, "limitSingleRecord": {"type": "boolean", "description": "Limit the selection of only one record"}}}}}]}, "FormatDateTime": {"description": "Date Format", "allOf": [{"$ref": "#/components/schemas/FormatProperty"}, {"type": "object", "properties": {"format": {"description": "Date attribute", "required": ["dateFormat", "timeFormat"], "properties": {"dateFormat": {"type": "string", "enum": ["YYYY/MM/DD", "YYYY-MM-DD", "DD/MM/YYYY", "YYYY-MM", "MM-DD", "YYYY", "MM", "DD"], "description": "Date Format"}, "timeFormat": {"type": "string", "enum": ["HH:mm", "hh:mm"], "description": "Time format"}, "includeTime": {"type": "boolean", "description": "Include time or not", "example": true}}}}}]}, "FormatNumber": {"description": "Number", "allOf": [{"$ref": "#/components/schemas/FormatProperty"}, {"type": "object", "properties": {"format": {"description": "Numeric Attributes", "properties": {"precision": {"type": "number", "description": "Represents the number of decimal places, that is, the numerical precision. Values are 0 (representing an integer), 1 (accurate to one decimal place), 2 (accurate to two decimal places), 3 (accurate to three decimal places), 4 (accurate to four decimal places)", "example": 0}}}}}]}, "FormatPercent": {"description": "Percentage", "allOf": [{"$ref": "#/components/schemas/FormatProperty"}, {"type": "object", "properties": {"format": {"description": "Percent attribute", "properties": {"precision": {"type": "number", "description": "Represents the number of decimal places, that is, the numerical precision. Values are 0 (representing an integer), 1 (accurate to one decimal place), 2 (accurate to two decimal places), 3 (accurate to three decimal places), 4 (accurate to four decimal places)", "example": 1}}}}}]}, "FormatCurrency": {"description": "Currency", "allOf": [{"$ref": "#/components/schemas/FormatProperty"}, {"type": "object", "properties": {"format": {"description": "Monetary attribute", "properties": {"precision": {"type": "number", "description": "Represents the number of decimal places, that is, the numerical precision. Values are 0 (representing an integer), 1 (accurate to one decimal place), 2 (accurate to two decimal places), 3 (accurate to three decimal places), 4 (accurate to four decimal places)", "example": 2}, "symbol": {"type": "string", "description": "Numeric unit, displayed on the right side of the number, blank by default", "example": "\uffe5"}}}}}]}, "FormatProperty": {"description": "Format attribute, applicable to Magic Lookup and Formula", "properties": {"type": "object"}, "discriminator": {"propertyName": "type", "mapping": {"DateTime": "#/components/schemas/FormatDateTime", "Number": "#/components/schemas/FormatNumber", "Percent": "#/components/schemas/FormatPercent", "Currency": "#/components/schemas/FormatCurrency"}}}, "MagicLookUp": {"description": "A lookup field is a field type related to OneWayLink or TwoWayLink field.It displays the raw data, performs calculations, creates aggregates based on specific cells of records that are linked to another fields in other datasheet.", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "MagicLookUp Properties", "required": ["relatedLinkFieldId", "targetFieldId"], "properties": {"relatedLinkFieldId": {"type": "string", "description": "The linked field ID of the referenced current table"}, "targetFieldId": {"type": "string", "description": "Field ID queried in the linked table"}, "rollupFunction": {"type": "string", "enum": ["VALUES", "AVERAGE", "COUNT", "COUNTA", "COUNTALL", "SUM", "MIN", "MAX", "AND", "OR", "XOR", "CONCATENATE", "ARRAYJOIN", "ARRAYUNIQUE", "ARRAYCOMPACT"], "description": "For summary function and parameter meaning, refer to [Lookup Product Manual](https://help.aitable.ai/docs/guide/manual-field-lookup)"}, "format": {"allOf": [{"$ref": "#/components/schemas/FormatProperty"}]}, "enableFilterSort": {"type": "boolean", "description": "Whether to enable filtering/sorting"}, "sortInfo": {"type": "object", "description": "Sorting settings", "required": ["rules"], "properties": {"rules": {"type": "array", "description": "The array of sorting rules", "minItems": 1, "maxItems": 1, "items": {"type": "object", "required": ["fieldId", "desc"], "properties": {"fieldId": {"type": "string", "description": "Sorting field ID"}, "desc": {"type": "boolean", "description": "Whether to sort in descending order"}}}}}}, "filterInfo": {"type": "object", "description": "Filter settings", "required": ["conjunction", "conditions"], "properties": {"conjunction": {"type": "string", "enum": ["and", "or"], "description": "Combination mode of filter conditions"}, "conditions": {"type": "array", "description": "Array of filtering conditions", "items": {"type": "object", "required": ["fieldId", "operator"], "properties": {"fieldId": {"type": "string", "description": "Field ID of filter fields"}, "operator": {"type": "string", "description": "Operator of the filter condition", "enum": ["is", "isNot", "contains", "doesNotContain", "isEmpty", "isNotEmpty", "isGreater", "isGreaterEqual", "isLess", "isLessEqual", "isRepeat"]}, "value": {"description": "Reference value of the filter condition"}}}}}}, "lookUpLimit": {"type": "string", "enum": ["ALL", "FIRST"], "description": "Limit the number of displayed reference records. ALL displays all; FIRST displays the first one."}}}}}]}, "Formula": {"description": "Intelligent formula", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "properties": {"property": {"description": "Smart Formula Properties", "properties": {"expression": {"type": "string", "description": "Formula Expression"}, "format": {"allOf": [{"$ref": "#/components/schemas/FormatProperty"}]}}}}}]}, "LastModifiedBy": {"description": "Updated by", "allOf": [{"$ref": "#/components/schemas/FieldItemRo"}, {"type": "object", "required": ["property"], "properties": {"property": {"description": "Update person attribute", "required": ["collectType"], "properties": {"collectType": {"type": "number", "enum": [0, 1], "description": "When the value is 0, the updater will be changed when any field is updated; when the value is 1, the updater will be changed only when the specified field is updated"}, "fieldIdCollection": {"type": "array", "description": "Filed ID Set"}}}}}]}, "FieldItemRo": {"type": "object", "discriminator": {"propertyName": "type", "mapping": {"SingleText": "#/components/schemas/SingleText", "Text": "#/components/schemas/Text", "SingleSelect": "#/components/schemas/SingleSelect", "MultiSelect": "#/components/schemas/MultiSelect", "Number": "#/components/schemas/Number", "Currency": "#/components/schemas/Currency", "Percent": "#/components/schemas/Percent", "DateTime": "#/components/schemas/DateTime", "Attachment": "#/components/schemas/Attachment", "Member": "#/components/schemas/Member", "Checkbox": "#/components/schemas/Checkbox", "Rating": "#/components/schemas/Rating", "URL": "#/components/schemas/URL", "Phone": "#/components/schemas/Phone", "Email": "#/components/schemas/Email", "OneWayLink": "#/components/schemas/OneWayLink", "TwoWayLink": "#/components/schemas/TwoWayLink", "MagicLookUp": "#/components/schemas/MagicLookUp", "Formula": "#/components/schemas/Formula", "AutoNumber": "#/components/schemas/AutoNumber", "CreatedTime": "#/components/schemas/CreatedTime", "LastModifiedTime": "#/components/schemas/LastModifiedTime", "CreatedBy": "#/components/schemas/CreatedBy", "LastModifiedBy": "#/components/schemas/LastModifiedBy"}}, "properties": {"type": {"type": "string", "example": "Text", "description": "Field Type"}, "name": {"type": "string", "example": "Title", "description": "Field name, no more than 100 characters"}}, "required": ["name", "type"]}, "DatasheetCreateRo": {"type": "object", "properties": {"name": {"type": "string", "example": "My Datasheet", "description": "Datasheet name, no more than 100 characters"}, "description": {"type": "string", "example": "This is a description", "description": "Table description, no more than 500 characters"}, "folderId": {"type": "string", "example": "fodn173Q0e8nC", "description": "The folder ID; if it is blank, it will be the working directory by default"}, "preNodeId": {"type": "string", "example": "dstQJl6BGku1WfLPTD", "description": "The ID of the previous node. If it is empty, it will be moved to the first place"}, "fields": {"type": "array", "items": {"$ref": "#/components/schemas/FieldItemRo"}, "description": "Field list. If it is blank, 3 columns of default fields will be added"}}, "required": ["name"]}, "FieldCreateItemVo": {"properties": {"id": {"type": "string", "example": "fldupsvkR2ATB", "description": "Field ID"}, "name": {"type": "string", "example": "Title", "description": "Field Name"}}}, "FieldCreateVo": {"type": "object", "properties": {"success": {"type": "boolean", "example": true, "description": "The global status value. If it is false, it indicates that a business error or interface call error has occurred."}, "code": {"type": "number", "example": 200, "description": "Business status code, 200 indicates that the business request is successful."}, "message": {"type": "string", "example": "SUCCESS", "description": "Return information, and return error information when executing an error."}, "data": {"type": "object", "properties": {"id": {"type": "string", "example": "fldupsvkR2ATB", "description": "Field ID"}, "name": {"type": "string", "example": "Title", "description": "Field Name"}}}}, "required": ["success", "code", "message", "data"]}, "FieldDeleteVo": {"type": "object", "properties": {"success": {"type": "boolean", "example": true, "description": "The global status value. If it is false, it indicates that a business error or interface call error has occurred."}, "code": {"type": "number", "example": 200, "description": "Business status code, 200 indicates that the business request is successful."}, "message": {"type": "string", "example": "SUCCESS", "description": "Return information, and return error information when executing an error."}, "data": {"type": "object"}}, "required": ["success", "code", "message", "data"]}, "DatasheetCreateVo": {"type": "object", "properties": {"success": {"type": "boolean", "example": true, "description": "The global status value. If it is false, it indicates that a business error or interface call error has occurred."}, "code": {"type": "number", "example": 200, "description": "Business status code, 200 indicates that the business request is successful."}, "message": {"type": "string", "example": "SUCCESS", "description": "Return information, and return error information when executing an error."}, "data": {"type": "object", "properties": {"id": {"type": "string", "example": "dstbs2U7mt8AEqgKuh", "description": "Form ID"}, "createdAt": {"type": "number", "example": 1648648690000, "description": "Create Timestamp"}, "fields": {"type": "array", "items": {"$ref": "#/components/schemas/FieldCreateItemVo"}}}}}, "required": ["success", "code", "message", "data"]}, "FieldDeleteRo": {"type": "object", "properties": {"conversion": {"type": "string", "example": "fldupsvkR2ATB", "description": "Field ID"}}}, "RecordCreateRo": {"type": "object", "properties": {"records": {"description": "The record data to be created, including the recorded fields and field values.", "example": [{"fields": {"matter": "\u300cOrganization Module - Organization of the address book panel", "problem description": "It is essentially the same as the above requirements", "classification": "Product demand", "Review date": "2019-10-30T00:00:00.000Z"}}, {"fields": {"matter": "\u300cMember\u300d module - set the department", "Problem description": "After selecting a person, you can adjust multiple departments to which he belongs\nAfter selecting a department, you can also add members to the current department", "classification": "product demand", "review date": "2019-10-29T16:00:00.000Z"}}], "type": "array", "items": {"$ref": "#/components/schemas/FieldCreateRo"}}, "fieldKey": {"type": "string", "enum": ["name", "id"], "description": "The key used when writing fields and returning fields. The default is' name '(field name). If you want to use fieldId as the write and return method, you need to explicitly specify it as' id '(using' id 'can avoid code invalidation caused by modifying field names).", "default": "name"}}, "required": ["records"]}, "ListVo": {"type": "object", "properties": {"records": {"description": "List of records successfully created or updated.", "type": "array", "items": {"$ref": "#/components/schemas/ApiRecordDto"}}}, "required": ["records"]}, "MetaViewItem": {"type": "object", "properties": {"id": {"type": "string", "example": "viwpdA8TUBp5r", "description": "View ID"}, "name": {"type": "string", "example": "Order completed", "description": "View Name"}, "type": {"type": "string", "example": "Grid", "description": "View type. Possible values are 'Grid', 'Gallery', 'Kanban', and 'Gantt'"}}, "required": ["id", "name", "type"]}, "MetaViewResp": {"type": "object", "properties": {"success": {"type": "boolean", "example": true, "description": "The global status value. If it is false, it indicates that a business error or interface call error has occurred."}, "code": {"type": "number", "example": 200, "description": "Business status code, 200 indicates that the business request is successful."}, "message": {"type": "string", "example": "SUCCESS", "description": "Return information, and return error information when executing an error."}, "data": {"type": "object", "description": "The returned business data body.", "properties": {"views": {"type": "array", "items": {"$ref": "#/components/schemas/MetaViewItem"}}}}}, "required": ["success", "code", "message", "data"]}, "MetaFieldResp": {"type": "object", "properties": {"success": {"type": "boolean", "example": true, "description": "The global status value. If it is false, it indicates that a business error or interface call error has occurred."}, "code": {"type": "number", "example": 200, "description": "Business status code, 200 indicates that the business request is successful."}, "message": {"type": "string", "example": "SUCCESS", "description": "Return information, and return error information when executing an error."}, "data": {"type": "object", "description": "The returned business data body.", "properties": {"fields": {"type": "array", "items": {"$ref": "#/components/schemas/MetaFieldItem"}}}}}, "required": ["success", "code", "message", "data"]}, "RecordListVo": {"type": "object", "properties": {"success": {"type": "boolean", "example": true, "description": "The global status value. If it is false, it indicates that a business error or interface call error has occurred."}, "code": {"type": "number", "example": 200, "description": "Business status code, 200 indicates that the business request is successful."}, "message": {"type": "string", "example": "SUCCESS", "description": "Return information, and return error information when executing an error."}, "data": {"description": "The returned business data body.", "allOf": [{"$ref": "#/components/schemas/ListVo"}]}}, "required": ["success", "code", "message", "data"]}, "AttachmentUploadRo": {"type": "object", "properties": {"file": {"type": "string", "format": "binary", "description": "The local absolute path of the attachment to be uploaded."}}, "required": ["file"]}, "AttachmentDto": {"type": "object", "properties": {"token": {"type": "string", "example": "space/2020/07/28/6fdc652231a8480398e302606ae28213", "description": "The storage token of the attachment."}, "name": {"type": "string", "example": "9d4911932181f254433a86b05797f9a6.jpeg", "description": "The name of the attachment."}, "size": {"type": "number", "example": 7194, "description": "The storage size of the attachment, in bytes."}, "width": {"type": "number", "example": 479, "description": "If the attachment is a picture, this field exists to indicate the width of the picture."}, "height": {"type": "number", "example": 478, "description": "If the attachment is a picture, this field exists to indicate the height of the picture."}, "mimeType": {"type": "string", "example": "image/jpeg", "description": "The media type of the attachment."}, "preview": {"type": "string", "example": "***", "description": "This field exists only when attachments generate thumbnails, indicating the network access address of thumbnails."}, "url": {"type": "string", "example": "***", "description": "The network access address of the attachment, valid for 2 hours"}}, "required": ["token", "name", "size", "width", "height", "mimeType"]}, "AttachmentVo": {"type": "object", "properties": {"success": {"type": "boolean", "example": true, "description": "The global status value. If it is false, it indicates that a business error or interface call error has occurred."}, "code": {"type": "number", "example": 200, "description": "Business status code, 200 indicates that the business request is successful."}, "message": {"type": "string", "example": "SUCCESS", "description": "Return information, and return error information when executing an error."}, "data": {"description": "The returned business data body.", "allOf": [{"$ref": "#/components/schemas/AttachmentDto"}]}}, "required": ["success", "code", "message", "data"]}, "RecordUpdateRo": {"type": "object", "properties": {"records": {"description": "The record data to be updated, including the record fields and field values.", "example": [{"recordId": "recrHnjVuH6Fd", "fields": {"currency": 5.53, "single choice": "Single choice 1"}}, {"recordId": "recwZ6yV3Srv3", "fields": {"currency": 5.53, "single choice": "Single choice 2"}}], "type": "array"}, "fieldKey": {"type": "string", "enum": ["name", "id"], "description": "The key used when writing fields and returning fields. The default is' name '(field name).If you want to use fieldId as the write and return method, you need to explicitly specify it as' id '(using' id 'can avoid code invalidation caused by modifying field names).", "default": "name"}}, "required": ["records"]}, "RecordDeleteVo": {"type": "object", "properties": {"success": {"type": "boolean", "example": true, "description": "The global status value. If it is false, it indicates that a business error or interface call error has occurred."}, "code": {"type": "number", "example": 200, "description": "Business status code, 200 indicates that the business request is successful."}, "message": {"type": "string", "example": "SUCCESS", "description": "Return information, and return error information when executing an error."}, "data": {"type": "boolean", "description": "The returned business data body."}}, "required": ["success", "code", "message", "data"]}, "NodeDetailItem": {"type": "object", "description": "The returned business data body.", "allOf": [{"$ref": "#/components/schemas/NodeItem"}, {"properties": {"children": {"type": "array", "description": "Only when the file type is' Folder ',' children 'information will be returned` The array under children 'is the outermost file list under the folder"}}}]}, "NodeItem": {"type": "object", "properties": {"id": {"type": "string", "example": "fodwrbgo8lDpbUjZzm", "description": "File ID"}, "name": {"type": "string", "example": "Procurement management", "description": "Document name"}, "type": {"type": "string", "example": "Folder", "description": "File type. Possible values include 'Datasheet', 'Mirror', 'Folder', 'Form', and 'Dashboard'", "enum": ["Datasheet", "Folder", "Form", "Dashboard"]}, "icon": {"type": "string", "example": "\ud83e\udd20", "description": "File icon, such as \ud83e\udd20"}, "isFav": {"type": "boolean", "example": true, "description": "Whether this file has been marked as a star"}}, "required": ["id", "name", "type", "icon", "isFav"]}, "NodeInfo": {"type": "object", "properties": {"id": {"type": "string", "example": "fodwrbgo8lDpbUjZzm", "description": "File ID"}, "name": {"type": "string", "example": "Procurement management", "description": "Document name"}, "type": {"type": "string", "example": "Folder", "description": "The specific type of file the user wants to retrieve, enumeration values are case-sensitive.", "enum": ["Datasheet", "Mirror", "Folder", "Form", "Dashboard"]}, "icon": {"type": "string", "example": "\ud83e\udd20", "description": "File icon, such as \ud83e\udd20"}, "parentId": {"type": "string", "example": "fodEqT83BQPz3", "description": "Parent Node ID."}, "permission": {"type": "number", "example": 0, "description": "By providing the permissions associated with their API token, users can retrieve all file nodes within their account that match those permissions."}, "isFav": {"type": "boolean", "example": true, "description": "Pin status. This parameter indicates whether the current node is pinned to the \"Pin\" section in the left sidebar."}}, "required": ["id", "name", "type", "icon", "permission", "isFav"]}, "NodeDetailResp": {"type": "object", "properties": {"success": {"type": "boolean", "example": true, "description": "The global status value. If it is false, it indicates that a business error or interface call error has occurred."}, "code": {"type": "number", "example": 200, "description": "Business status code, 200 indicates that the business request is successful."}, "message": {"type": "string", "example": "SUCCESS", "description": "Return information, and return error information when executing an error."}, "data": {"$ref": "#/components/schemas/NodeDetailItem"}}, "required": ["success", "code", "message", "data"]}, "SpaceItem": {"type": "object", "properties": {"id": {"type": "string", "example": "spczdmQDfBAn5", "description": "Space ID"}, "name": {"type": "string", "example": "AITable No.1", "description": "Space name"}, "isAdmin": {"type": "boolean", "example": true, "description": "Whether the current requesting user is the primary administrator of this space"}}, "required": ["id", "name"]}, "SpaceListResp": {"type": "object", "properties": {"success": {"type": "boolean", "example": true, "description": "The global status value. If it is false, it indicates that a business error or interface call error has occurred."}, "code": {"type": "number", "example": 200, "description": "Business status code, 200 indicates that the business request is successful."}, "message": {"type": "string", "example": "SUCCESS", "description": "Return information, and return error information when executing an error."}, "data": {"type": "object", "description": "The returned business data body.", "properties": {"spaces": {"type": "array", "items": {"$ref": "#/components/schemas/SpaceItem"}}}}}}, "NodeListResp": {"type": "object", "properties": {"success": {"type": "boolean", "example": true, "description": "The global status value. If it is false, it indicates that a business error or interface call error has occurred."}, "code": {"type": "number", "example": 200, "description": "Business status code, 200 indicates that the business request is successful."}, "message": {"type": "string", "example": "SUCCESS", "description": "Return information, and return error information when executing an error."}, "data": {"type": "object", "description": "The returned business data body.", "properties": {"nodes": {"type": "array", "description": "List of all files returned.", "items": {"$ref": "#/components/schemas/NodeItem"}}}}}}, "NodeInfosResp": {"type": "object", "properties": {"success": {"type": "boolean", "example": true, "description": "The global status value. If it is false, it indicates that a business error or interface call error has occurred."}, "code": {"type": "number", "example": 200, "description": "Business status code, 200 indicates that the business request is successful."}, "message": {"type": "string", "example": "SUCCESS", "description": "Return information, and return error information when executing an error."}, "data": {"type": "object", "description": "The returned business data body.", "properties": {"nodes": {"type": "array", "description": "List of all nodes returned.", "items": {"$ref": "#/components/schemas/NodeInfo"}}}}}}, "EmbedLinkPayloadPrimarySideBarDto": {"type": "object", "properties": {"collapsed": {"type": "boolean", "description": "The initial state of the directory. The default value is false, which indicates folding."}}}, "EmbedLinkPayloadViewToolBarDto": {"type": "object", "properties": {"basicTools": {"type": "boolean", "description": "The default value is false. The basic toolbar (including grouping, filtering, row height, hidden fields and sorting) is not displayed in the embedded interface"}, "widgetBtn": {"type": "boolean", "description": "The default value is false, and the \"widget\" button is not displayed in the embedded interface"}, "apiBtn": {"type": "boolean", "description": "The default value is false. The \"API\" button is not displayed in the embedded interface"}, "formBtn": {"type": "boolean", "description": "The default value is false. The \"Magic Form\" button is not displayed in the embedded interface"}, "historyBtn": {"type": "boolean", "description": "The default value is false. The \"Time Machine\" button is not displayed in the embedded interface"}, "robotBtn": {"type": "boolean", "description": "The default value is false. The \"Robot\" button is not displayed in the embedded interface"}, "addWidgetBtn": {"type": "boolean", "description": "The default value is false, and the \"Add widget\" button is not displayed in the dashboard embed interface"}, "fullScreenBtn": {"type": "boolean", "description": "The default value is false, and the \"Full Screen\" button is not displayed in the dashboard embed interface"}, "formSettingBtn": {"type": "boolean", "description": "The default value is false, the \"Settings\" button is not displayed in the embedded interface"}}}, "EmbedLinkPayloadViewControlDto": {"type": "object", "properties": {"viewId": {"description": "Specify a single view for embedding,Only valid for datasheet embedding.", "type": "string"}, "tabBar": {"description": "Whether to display the view label bar. The default value is true, indicating that the view label bar is displayed. If it is used together with the viewId parameter, there are several cases:
readOnly: Default value. This parameter defaults to readOnly if it is not set. Embedded datasheets can only be read, not edited, by visitors. publicEdit: Visitors can edit row data in an embedded datasheet once they have logged in. privateEdit: Every datasheet in the space can have its operation permission set (read-only, update-only, edit, manage). Use the privateEdit type to indicate that the visitor's identity must be a member of this space and that the operation permission is consistent with accessing the datasheet inside the space.