All Products
Search
Document Center

DataWorks:CreateNode

Last Updated:Dec 05, 2024

Creates a node in Data Studio.

Operation description

Note You cannot use this API operation to create multiple nodes at a time. If you specify multiple nodes by using FlowSpec, the system creates only the first specified node.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectIdstringYes

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

You must configure this parameter to specify the DataWorks workspace to which the API operation is applied.

123456
ContainerIdstringNo

The container ID. If you want to create a node in a container, you must configure this parameter to specify the container. The container can be a workflow or a node in a container.

Note If you configure this parameter, the path field defined in FlowSpec becomes invalid.
a7ef0634-20ec-4a7c-a214-54020f91XXXX
ScenestringYes

The scene of the node. This parameter determines the location (the DataStudio pane or the Manual pane) of the node. You can set this parameter to DATAWORKS_MANUAL_WORKFLOW only if the ContainerId parameter is configured and the container specified by ContainerId is a manually triggered workflow.

Valid values:

  • DATAWORKS_PROJECT
  • DATAWORKS_MANUAL_WORKFLOW
  • DATAWORKS_MANUAL_TASK
DATAWORKS_PROJECT
SpecstringYes

The FlowSpec field information about the node. For more information, see FlowSpec .

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

AFBB799F-8578-51C5-A766-E922EDB8XXXX
Idstring

The ID of the node.

860438872620113XXXX

Examples

Sample success responses

JSONformat

{
  "RequestId": "AFBB799F-8578-51C5-A766-E922EDB8XXXX",
  "Id": "860438872620113XXXX"
}

Error codes

For a list of error codes, visit the Service error codes.