Update data release

Update the table range, target workspace or remarks of data publishing.

HTTP
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

Shell
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

id

integer

Yes

Release ID greater than 0.

Request body

Field

Type

Required

Description

table_scope

object or null

No

Table scope configuration. See the current limitations below for the behavior when omitted or null.

table_scope.mode

string

Yes

Scope or operating mode. The values ​​are all, selected.

table_scope.object_ids

array or null

No

Physical table IDs used for selected scope. Empty values may be treated as all tables; see the current limitations.

tables

array of string or null

No

List of compatible table names.

target_workspace_ids

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.

remark

string or null

No

Updated notes.

table_scope.mode

string

No

all means publishing all current tables in the source database. selected means to publish only the table specified in object_ids.

table_scope.object_ids

array of string

No

List of table IDs used by selected. When omitting or filling in null or [], it will also be treated as the entire table. all mode ignores this value.

Submit only the fields you want to modify.

Submit at least one of the fields table_scope, target_workspace_ids, or remark.

Successful response

JSON
{
  "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

code

string

success code.

msg

string

Response information.

data

object

The data returned by this operation.

data.id

string

Release ID.

data.name

string

Release name.

data.obj_display_name

string

Source object name for display.

data.obj_display_path

string

Source object path for display.

data.targets

array of object

Target workspace list.

data.targets[].workspace_id

string

Target workspace ID.

data.targets[].workspace_name

string

Target workspace name.

data.permission

string

Fixed to readonly

data.remark

string

Post notes.

data.created_by

string

Creator ID.

data.created_at

string

Creation time.

data.updated_at

string

Last updated.

data.source_database_id

string

Source database ID.

data.mo_database_name

string

Source database name in OmniFabric.

data.table_scope

object

Published table range.

data.table_scope.mode

string

Table range mode. The value is empty string, all, selected

data.table_scope.object_ids

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.

JSON
{
  "code": "ErrConcurrentUpdate",
  "msg": "资源状态冲突",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Error description.

data

null

Empty on error.

Common HTTP errors

HTTP status

Error code

Common cause

Recommended action

400

ErrWorkspaceRequired, ErrParamInvalid

Invalid request field, workspace, or operation precondition.

Fix the request parameters and submit again.

403

ErrPermissionDenied

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

ErrSourceNotFound, ErrPublishNotFound, ErrSubscriptionNotFound

The target object or required reference was not found.

Verify the object identifier, workspace, and current status.

409

ErrDuplicateName, ErrDuplicatePublish, ErrSubscriptionOfferExpired, ErrAlreadySubscribed, ErrNameConflict, ErrPublicationTargetNotFound, ErrDataShareMutationInProgress, ErrDataShareRepairRequired, ErrDataShareManualRecoveryRequired, ErrConcurrentUpdate

Conflict in resource state, request payload, or concurrent modification.

Re-read the current state and version, then handle according to the latest result.

500

ErrServer

Internal processing failed; write operations may have been partially applied.

Retain request and trace details, and verify the current state before retrying.

503

ErrServiceUnavailable, ErrPublicationCreateRetryable

A business, runtime, or authorization dependency is temporarily unavailable.

After the dependency recovers, check existing results first instead of blindly repeating writes.

Last updated on