Set node effective version

Set the effective version of the output content of the specified processing node.

HTTP
POST $CLOUDSIGMA_API_BASE/lineage/artifacts/{artifact_id}/nodes/{node_id}/effective-revisions

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. Prepare personal access token and target workspace ID that can access the target workspace.

Request body

Replace $ARTIFACT_ID, $NODE_ID, $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/lineage/artifacts/$ARTIFACT_ID/nodes/$NODE_ID/effective-revisions" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "switches": [
    {
      "block_id": "block-001",
      "effective_revision_id": "rev-002"
    }
  ],
  "expected_effective_set_version": 0
}'

Parameter

Type

Required

Description

artifact_id

string

Yes

A composite identifier composed of the root asset ID and the source run ID, encoded as a path segment.

node_id

string

Yes

Full node path, such as root.prepare.

Request body

Field

Type

Required

Description

expected_effective_set_version

integer

Yes

The version number of the effective version set used to avoid concurrent overwriting. Not less than 0.

switches

array of object

Yes

List of output contents to update. At least 1 items.

switches[].block_id

string

When the object is provided

Output block ID. Cannot be empty.

switches[].effective_revision_id

string

No

The revision ID currently in effect.

switches[].use_original

boolean

No

Whether to use the original content as a baseline.

expected_effective_set_version must be submitted and is switched to 0 for the first time. Version conflict returns 409. Read the latest status and verify your selection before submitting.

switches must meet the non-empty and unique requirements specified by the interface, and cannot select the same target repeatedly. The version will be advanced even if the selection is the same as the current one. If the target does not exist or there is a version conflict, 404 and 409 are returned respectively.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "artifact_id": "asset-001:case-001",
    "node_id": "root.prepare",
    "effective_set_version": 4
  }
}

Field

Type

Description

data.artifact_id

string

Processing result ID.

data.node_id

string

Node ID.

data.node_execution_id

string

Node execution ID.

data.output_artifact_id

string

Output product ID.

data.effective_set_version

integer

The version number of the effective version set after setting. Not less than 1.

Error response

JSON
{
  "code": "ErrParamInvalid",
  "msg": "请求参数无效",
  "data": null
}

Field

Type

Required

Description

code

string

No

error code.

msg

string

No

Readable error message.

data

null

No

null in error response.

Last updated on