Query release summary¶
Query the number of data releases in the current workspace and the number of target workspaces.
GET https://moi.matrixorigin.cn/newmoi/data-share/publishes/summary
Preparation before calling¶
Prepare a personal access token and 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: Target workspace ID, passed throughX-Workspace-IDHeader.
Request example¶
curl "https://moi.matrixorigin.cn/newmoi/data-share/publishes/summary" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Successful response¶
Returns 200 and the summary quantity on success.
{
"code": "OK",
"msg": "OK",
"data": {
"total": 3,
"target_total": 5
}
}
The response fields are as follows.
Field |
Type |
Description |
|---|---|---|
|
integer |
The number of data releases in the current workspace. |
|
integer |
The number of target workspaces associated with all publications. |
Error response¶
{
"code": "ErrServer",
"msg": "服务器内部错误",
"data": null
}
Common HTTP errors¶
HTTP status code |
error code |
Common causes |
Recommended actions |
|---|---|---|---|
|
|
The current identity does not have permission to read the publication. |
Use credentials with read permissions. |
|
|
Dependent services are temporarily unavailable. |
Try again later. |
|
|
The server failed to read the publication summary. |
Try again later. |