Update data release¶
Update the table range, target workspace or remarks of data publishing.
PUT $CLOUDSIGMA_API_BASE/data-share/publishes/{id}
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First query the data release list and confirm the release to be updated. Prepare the personal access token, target workspace ID, and release ID that can access the target workspace.
Request body¶
curl -X PUT "$CLOUDSIGMA_API_BASE/data-share/publishes/$PUBLICATION_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
--data-binary @- <<JSON
{
"table_scope": {
"mode": "selected",
"object_ids": ["${TABLE_ID}"]
},
"target_workspace_ids": ["${TARGET_WORKSPACE_ID}"],
"remark": "更新后的备注"
}
JSON
When updating, selected.object_ids is currently queried by table name. The incoming table ID may not locate the target table, or it may mismatch a numeric table name. Do not rely on the table ID in the source list to directly update the publication scope.
table_scope can be omitted or filled in with null. When selecting all, the table ID list is ignored.
When selecting selected, fill in a non-empty table list. Omitting the list or filling in null or [] will be treated as the entire table. This interface does not have a fixed cap on the 1000 entry. Don’t use different source targeting methods at the same time.
Path parameters
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
Yes |
Release ID greater than |
Request body
Field |
Type |
Required |
Description |
|---|---|---|---|
|
object or null |
No |
Table scope configuration. See the current limitations below for the behavior when omitted or null. |
|
string |
Yes |
Scope or operating mode. The values are |
|
array or null |
No |
Physical table IDs used for selected scope. Empty values may be treated as all tables; see the current limitations. |
|
array of string or null |
No |
List of compatible table names. |
|
array of string or null |
No |
The updated target workspace ID. When submitting, there must be at least one, no duplicate, and cannot include the current workspace ID, and each value must not have leading or trailing blanks. |
|
string or null |
No |
Updated notes. |
|
string |
No |
|
|
array of string |
No |
List of table IDs used by |
Submit only the fields you want to modify.
Submit at least one of the fields table_scope, target_workspace_ids, or remark.
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"id": "101",
"name": "sales-share",
"obj_display_name": "sales",
"obj_display_path": "catalog/sales",
"targets": [
{
"workspace_id": "ws-002"
}
],
"permission": "readonly",
"remark": "更新后的备注",
"created_by": "user-001",
"created_at": "2026-08-18T10:00:00Z",
"updated_at": "2026-08-18T11:00:00Z",
"source_database_id": "1001",
"mo_database_name": "sales",
"table_scope": {
"mode": "selected",
"object_ids": [
"2001"
]
}
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
success code. |
|
string |
Response information. |
|
object |
The data returned by this operation. |
|
string |
Release ID. |
|
string |
Release name. |
|
string |
Source object name for display. |
|
string |
Source object path for display. |
|
array of object |
Target workspace list. |
|
string |
Target workspace ID. |
|
string |
Target workspace name. |
|
string |
Fixed to |
|
string |
Post notes. |
|
string |
Creator ID. |
|
string |
Creation time. |
|
string |
Last updated. |
|
string |
Source database ID. |
|
string |
Source database name in OmniFabric. |
|
object |
Published table range. |
|
string |
Table range mode. The value is empty string, |
|
array of string or null |
List of table IDs within publication scope. The entire table range may be null, and this cannot be used to determine that the table has not been published. |
Error response¶
Publishing requires data publishing permissions and access to source data. Publishing involves database, cross-workspace invitation and ownership registration, and some changes may have been completed after failure.
HTTP 409 may require manual repair, and HTTP 503 may indicate that a dependency is unavailable. Keep the request and tracking identifiers, query the publishing results first, and then decide whether to try again.
{
"code": "ErrConcurrentUpdate",
"msg": "资源状态冲突",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Error description. |
|
null |
Empty on error. |
Common HTTP errors¶
HTTP status |
Error code |
Common cause |
Recommended action |
|---|---|---|---|
400 |
|
Invalid request field, workspace, or operation precondition. |
Fix the request parameters and submit again. |
403 |
|
The current identity or active role does not have permission for this operation. |
Use an authorized identity or contact an administrator to grant access. |
404 |
|
The target object or required reference was not found. |
Verify the object identifier, workspace, and current status. |
409 |
|
Conflict in resource state, request payload, or concurrent modification. |
Re-read the current state and version, then handle according to the latest result. |
500 |
|
Internal processing failed; write operations may have been partially applied. |
Retain request and trace details, and verify the current state before retrying. |
503 |
|
A business, runtime, or authorization dependency is temporarily unavailable. |
After the dependency recovers, check existing results first instead of blindly repeating writes. |