UpdateNode

Updated at:

Updates the basic information about a node in Data Studio. This API operation performs an incremental update. The update information is described by using FlowSpec.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to query the ID.

10000

Id

string

Yes

The unique identifier of the Data Studio node.

Note

This field is of the Long type in SDK versions prior to 8.0.0, and of the String type in SDK versions 8.0.0 and later. This change does not affect normal SDK usage; the parameter will still be returned according to the type defined in the SDK. However, compilation failures may occur due to the type change only when upgrading the SDK across version 8.0.0. In this case, you must manually update the data type.

860438872620113XXXX

Spec

string

Yes

The FlowSpec information that describes the node. For the specification, see FlowSpec.

How to quickly obtain a FlowSpec template

Open the node in Data Studio, click Versions on the right, view the latest version, and view the scheduling configuration to obtain the FlowSpec description of the current node. Use this description to quickly build a template that meets the requirements.

How to specify node content

Specify the node content in $.spec.nodes[*].script.content.

{ "version": "1.1.0", "kind": "Node", "spec": { "nodes": [ { "id": "860438872620113XXXX", "recurrence": "Normal", "timeout": 0, "instanceMode": "T+1", "rerunMode": "Allowed", "rerunTimes": 3, "rerunInterval": 180000, "datasource": { "name": "odps_test" }, "script": { "path": "XX/OpenAPI_Test/odpsSQL_Test", "runtime": { "command": "ODPS_SQL" }, "content": "select now();" }, "trigger": { "type": "Scheduler", "cron": "00 00 00 * * ?", "startTime": "1970-01-01 00:00:00", "endTime": "9999-01-01 00:00:00", "timezone": "Asia/Shanghai", "delaySeconds": 0 }, "runtimeResource": { "resourceGroup": "S_res_group_XXXX_XXXX" }, "name": "odpsSQL_Test", "inputs": { "nodeOutputs": [ { "data": "project_root", "artifactType": "NodeOutput" } ] }, "outputs": { "nodeOutputs": [ { "data": "output_data", "artifactType": "NodeOutput", "refTableName": "odpsSQL_Test" } ] } } ], "flow": [ { "nodeId": "860438872620113XXXX", "depends": [ { "type": "Normal", "output": "project_root" } ] } ] } }

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID. You can troubleshoot issues based on the ID.

99EBE7CF-69C0-5089-BE3E-79563C31****

Success

boolean

Indicates whether the request was successful. Valid values: true (successful) and false (failed).

true

Examples

Success response

JSON format

{
  "RequestId": "99EBE7CF-69C0-5089-BE3E-79563C31****",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.