# OpenMeta ## API Docs - Model APIs [copyById](https://api.openmeta.info/api-250726309.md): Copy one row based on ID, and return the ID of the new row. - Model APIs [copyByIdAndFetch](https://api.openmeta.info/api-250726310.md): Copy one row based on ID, and fetch the new row. - Model APIs [copyByIds](https://api.openmeta.info/api-250726311.md): Copy multiple rows based on IDs, and return the new data IDs. - Model APIs [copyByIdsAndFetch](https://api.openmeta.info/api-250726312.md): Copy multiple rows based on ids, and fetch the new rows. - Model APIs [count](https://api.openmeta.info/api-264050251.md): Returns a count or group counting based on the specified `filter`, `groupBy`, and `orders`. - Model APIs [createList](https://api.openmeta.info/api-250726314.md): Create multiple rows and return the ID list. - Model APIs [createListAndFetch](https://api.openmeta.info/api-250726315.md): Create multiple rows and fetch the latest values from database. - Model APIs [createOne](https://api.openmeta.info/api-250726316.md): Create one row and return the id. - Model APIs [createOneAndFetch](https://api.openmeta.info/api-250726317.md): Create one row and fetch the latest values from database. - Model APIs [deleteById](https://api.openmeta.info/api-250726318.md): Delete one row by ID. All slices related to this `ID` will be deleted for timeline model. - Model APIs [deleteByIds](https://api.openmeta.info/api-250726319.md): Delete multiple rows by IDs. - Model APIs [deleteBySliceId](https://api.openmeta.info/api-250726320.md): Delete one slice of the timeline model by `sliceId`. - Model APIs [getById](https://api.openmeta.info/api-264050252.md): Get one row by ID. - Model APIs [getByIds](https://api.openmeta.info/api-264050253.md): Get multiple rows by IDs. - Model APIs [getCopyableFields](https://api.openmeta.info/api-250726323.md): Get the copyable fields value by ID, no data inserted. - Model APIs [getRowFiles](https://api.openmeta.info/api-265310069.md): Get the fileInfos by modelName and rowId - Model APIs [getUnmaskedField](https://api.openmeta.info/api-250726324.md): Get the original value for masking field. - Model APIs [getUnmaskedFields](https://api.openmeta.info/api-250726325.md): Get the original values for multiple masking fields. - Model APIs [searchList](https://api.openmeta.info/api-250726326.md): Query the data list based on the specified fields, filters, orders, limitSize, aggFunctions, and subQueries. Default limit to 50. - Model APIs [searchName](https://api.openmeta.info/api-264050254.md): Query the displayNames based on the match field, filters, orders, limitSize. Default limit to 10. - Model APIs [searchPage](https://api.openmeta.info/api-250726327.md): Paging aggregation query parameters, including fields, filters, orders, pageNumber, pageSizegroupBy, aggFunctions, subQueries, etc. Use the backend default value when not specified. - Model APIs [searchPivot](https://api.openmeta.info/api-250726328.md): Get the pivot table data based on the specified fields, filters, orders, groupBy, splitBy. - Model APIs [searchSimpleAgg](https://api.openmeta.info/api-250726329.md): Simple aggregation query params. Pure SUM, AVG, MIN, MAX, COUNT aggregate query, like `["SUM", "amount"]` - Model APIs [updateByFilter](https://api.openmeta.info/api-250726330.md): Batch update data according to the filters, within the current user's permission scope. - Model APIs [updateList](https://api.openmeta.info/api-250726331.md): Update multiple rows by ID. Return true on success. - Model APIs [updateListAndFetch](https://api.openmeta.info/api-250726332.md): Update multiple rows by ID, and fetch the latest values from database. - Model APIs [updateOne](https://api.openmeta.info/api-250726333.md): Update one row by ID. Return true on success. - Model APIs [updateOneAndFetch](https://api.openmeta.info/api-250726334.md): Update one row by ID, and fetch the latest values from database. - Model APIs [uploadFile](https://api.openmeta.info/api-265310070.md): Upload a file to the specified model to bind with a field. - Model APIs [uploadFileToRow](https://api.openmeta.info/api-265310071.md): Upload a file to the specified model and row, and return the fileInfo. - Toolkit [fixUnencryptedData](https://api.openmeta.info/api-188612853.md): After changing field to encrypted field, call this API to encrypt historical plaintext data. - Toolkit [recompute](https://api.openmeta.info/api-188612854.md): Recomputes the stored computed and cascaded fields for the specified model. - Toolkit [validateExpression](https://api.openmeta.info/api-280216611.md): Validates the expression. - ChangeLog [getChangeLog](https://api.openmeta.info/api-222294038.md): Read the data change records according to the id, and return the page of the data change record, default in reverse order by change time. - ChangeLog [getSliceChangeLog](https://api.openmeta.info/api-222294039.md): Read the timeline slice change log page according to sliceId, default in reverse order by change time. - ChangeLog [searchPage](https://api.openmeta.info/api-264050248.md): Return paginated data based on the specified filters, sorting conditions, page number, page size. - ChangeLog [searchPageByModel](https://api.openmeta.info/api-222294041.md): Return paginated data based on the specified filters, sorting conditions, page number, page size. - File Record [getByFileId](https://api.openmeta.info/api-265310068.md): Get the fileInfo by fileId - Import Template [getTemplateFile](https://api.openmeta.info/api-222125604.md): Get the fileInfo of the import template by template ID. - Import Template [listByModel](https://api.openmeta.info/api-222125605.md): List all import templates of the specified model - SysPreData [loadData](https://api.openmeta.info/api-222125606.md): Load the specified list of predefined data files from the root directory resources/data, - SysPreData [uploadFile](https://api.openmeta.info/api-222125607.md): - SysView [getModelViews](https://api.openmeta.info/api-222125608.md): Get the list of views visible to the current user based on the model name. [Public views, personal views] and sorted by sequence. - SysView [setDefaultView](https://api.openmeta.info/api-222125609.md): Set the current user's default view based on the model name and view ID: {"modelName": "Employee", "viewId": 1} - Data Export [dynamicExport](https://api.openmeta.info/api-222125610.md): Export data by dynamic fields and QueryParams, without export template. - Data Export [exportByFileTemplate](https://api.openmeta.info/api-222125611.md): Exported by file template and QueryParams - Data Export [exportByTemplate](https://api.openmeta.info/api-222125612.md): Exported by exportTemplate with dynamic fields and QueryParams - Import [importWithoutTemplate](https://api.openmeta.info/api-222125613.md): Import data from the uploaded file - Import [importByTemplate](https://api.openmeta.info/api-222125614.md): Import data from the uploaded file - Metadata Upgrade API [reload](https://api.openmeta.info/api-222125615.md): - Metadata Upgrade API [upgrade](https://api.openmeta.info/api-222125616.md): - Export Template [listByModel](https://api.openmeta.info/api-222193869.md): List all export templates of the specified model - DeptInfo [readCustomize](https://api.openmeta.info/api-222294042.md): Read customized department info by ID. - AiRobot [Chat API](https://api.openmeta.info/api-250726246.md): Non-streaming Chat API - AiRobot [Stream Chat](https://api.openmeta.info/api-250726247.md): Stream chat by SSE(Server-Sent Events). - DocumentTemplate [generateDocument](https://api.openmeta.info/api-250726248.md): Generate a word or PDF document according to the specified template ID and row ID. - FlowConfig [getByModel](https://api.openmeta.info/api-250726249.md): Get flow list by model. - FlowConfig [getFlowById](https://api.openmeta.info/api-250726250.md): Get flow config by ID. - SysCron [Execute multiple for once now](https://api.openmeta.info/api-250726251.md): Immediately run the specified multiple cron jobs for once. - SysCron [Execute once now](https://api.openmeta.info/api-250726252.md): Immediately run the specified cron job for once. - SysModel [getModelFields](https://api.openmeta.info/api-250726253.md): Get the fields of the model. - SysOptionSet [getOptionSetItems](https://api.openmeta.info/api-250726254.md): Get the option set items of the specified option set code. - Flow Automation [API Event](https://api.openmeta.info/api-250726255.md): Trigger the flow by API event. - Flow Automation [Onchange Event](https://api.openmeta.info/api-250726257.md): Pass the current data and return a Map of field value changes that affect other fields. - Flow Automation [Simulate Event Message](https://api.openmeta.info/api-250726258.md): Simulate flow triggering by passing a FlowEventVO, suitable for scenarios such as ChangeLog, Cron, etc. - DesignAppEnv [getNotVersionedChanges](https://api.openmeta.info/api-264050255.md): Get the not versioned changes of the App env. - DesignAppEnv [mergeBetweenEnv](https://api.openmeta.info/api-264050256.md): Merge changes between environments. - DesignAppEnv [previewBetweenEnv](https://api.openmeta.info/api-264050257.md): Preview changes between two environments. - DesignAppVersion [createOne](https://api.openmeta.info/api-264050258.md): Create one row and return the id. - DesignAppVersion [publish](https://api.openmeta.info/api-264050259.md): Publish the version to the target environment. - DesignAppVersion [reloadAppVersion](https://api.openmeta.info/api-264050260.md): Reload App env changes to current version. - DesignModel [downloadCode](https://api.openmeta.info/api-264050261.md): Download specified code file - DesignModel [downloadZip](https://api.openmeta.info/api-264050262.md): Download model code package - DesignModel [previewCode](https://api.openmeta.info/api-264050263.md): Preview the generated model code, including Java class code for Entity, Service, ServiceImpl, and Controller - DesignModel [previewDDL](https://api.openmeta.info/api-264050264.md): Preview the DDL SQL of model, including table creation and index creation