Create node output version

Creates a revision for the specified node output block.

HTTP
POST $CLOUDSIGMA_API_BASE/lineage/artifacts/{artifact_id}/nodes/{node_id}/blocks/{block_id}/revisions

Before you call this API

Configure the regional API endpoint and authentication, and select the target workspace.

Request

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/lineage/artifacts/$ARTIFACT_ID/nodes/$NODE_ID/blocks/$BLOCK_ID/revisions" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "use_current_effective": true,
    "revision_content_payload": "修订后的内容"
  }'

Request body

FieldTypeDescription
base_revision_idstringThe revision ID to base the new revision on.
use_originalbooleanUse original content as base.
use_current_effectivebooleanUse the currently active revision as the basis.
expected_effective_set_versionintegerThe expected effective revision set version.
revision_content_payloadstringNew revision content.
patch_jsonstringRevision patch JSON.

Successful response

When the request is successful, the data of this operation is returned. Just because the write or run request has been accepted does not mean that the subsequent processing has been completed; please confirm the result based on the return status or subsequent query.

The response fields are as follows.

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {"artifact_id": "art-001", "node_id": "node-001", "block_id": "block-001", "revision": {}}
}
FieldTypeDescription
data.artifact_idstringProduct ID.
data.node_idstringNode ID.
data.block_idstringOutput block ID.
data.revisionobjectThe newly created revision.

Error response

JSON
{
  "code": "ErrParamInvalid",
  "msg": "请求参数无效",
  "data": null
}
FieldTypeDescription
codestringError code.
msgstringReadable error message.
datanull`null` in an error response.
Last updated on