All Products
Search
Document Center

DataWorks:UpdateComponent

Last Updated:Mar 30, 2026

Updates components.

Operation description

This API is currently in trial. To use this API, submit an application. After the administrator adds you to the trial list, you can call this API.

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

ComponentId

string

Yes

The component ID.

568780096083*******

Spec

string

Yes

The FlowSpec information for this UDF function. For more information, see FlowSpec.

{ "kind": "Component", "version": "1.1.2", "spec": { "components": [ { "id": "568780096083*******", "script": { "content": "select '@@{para1}', '@@{para2}'" } } ] } }

ProjectId

integer

Yes

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

10000

Response elements

Element

Type

Description

Example

object

The response.

RequestId

string

The request ID.

0bc1ec92159376

Success

boolean

Indicates whether the request was successful.

true

Examples

Success response

JSON format

{
  "RequestId": "0bc1ec92159376",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.