Query data release list¶
Lists data publications for the current workspace.
GET https://moi.matrixorigin.cn/newmoi/data-share/publishes
Preparation before calling¶
Prepare a personal access token and target workspace ID that has access to the target workspace.
The example below uses:
$AI_STUDIO_API_KEY: The actual personal access token, passed through theX-API-KeyHeader.$WORKSPACE_ID: The workspace ID to be queried is passed through theX-Workspace-IDHeader.
Request example¶
curl "https://moi.matrixorigin.cn/newmoi/data-share/publishes?page=1&page_size=20" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Query parameters¶
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Search by keyword. |
|
integer |
No |
Page number; if not transmitted, return to page 1. |
|
integer |
No |
Number per page; if not transmitted, 20 items per page will be returned. |
Successful response¶
Returns 200 on success. data.list is the current page and data.total is the total number of matches.
{
"code": "OK",
"msg": "OK",
"data": {
"list": [
{
"id": "101",
"name": "sales-share",
"source_database_id": "1001",
"mo_database_name": "sales",
"table_scope": {
"mode": "selected",
"object_ids": ["2001"]
},
"obj_display_name": "sales",
"obj_display_path": "catalog/sales",
"targets": [
{
"workspace_id": "ws-002",
"workspace_name": "分析工作区"
}
],
"permission": "read",
"remark": "共享销售数据",
"created_by": "user-001",
"created_at": "2026-08-18T10:00:00Z",
"updated_at": "2026-08-18T10:00:00Z"
}
],
"total": 1,
"page": 1,
"page_size": 20
}
}
The response fields are as follows.
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
object[] |
Current page publishing list; empty array when there is no result. |
|
integer |
The total number of matches. |
|
integer |
Current page number. |
|
integer |
Number per page. |
|
string |
Release ID. |
|
string |
Release name. |
|
string |
Source database ID. |
|
string |
Source database name in MatrixOne. |
|
object |
Published table range. |
|
string |
Table range mode. |
|
string[] |
Specifies the ID of the table; it is an empty array in all table mode. |
|
string |
The name of the source object for display. |
|
string |
Source object path for display. |
|
object[] |
List of target workspaces. |
|
string |
Target workspace ID. |
|
string |
Target workspace name; returned if there is a value. |
|
string |
Publish permission. |
|
string |
Release notes. |
|
string |
The display name of the creator; returns the creator ID if it cannot be parsed. |
|
string |
Creation time. |
|
string |
Last updated time. |
In this document, [] after a type means an array; for example, object[] is an array of objects. In field paths, [] means each item in an array; for example, data.list[].id is the id field of each item in data.list.
Error response¶
{
"code": "ErrParamInvalid",
"msg": "请求参数无效",
"data": null
}
Common HTTP errors¶
HTTP status code |
error code |
Common causes |
Recommended actions |
|---|---|---|---|
|
|
Pagination or query parameters could not be parsed. |
Check |
|
|
The current identity does not have permission to read the publication. |
Request to grant read permission to the data publication. |
|
|
Dependent services are temporarily unavailable. |
Try again later. |
|
|
The server failed to read the publication list. |
Try again later. |
Follow-up operations¶
Use data.list[].id Update data release or Delete data release.