All Products
Search
Document Center

:UpdateClusterConfigs

Last Updated:Sep 04, 2025

Updates the configurations of submodules in a workspace. You can configure SPARK parameters.

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
ClusterIdlongYes

The ID of the cluster associated with DataWorks.

1234
ProjectIdlongYes

The ID of the workspace.

5678
ConfigTypestringYes

The configuration type of the cluster. Valid values:

  • SPARK_CONF: SPARK parameters
SPARK_CONF
ConfigValuesarrayYes

The configuration information of the cluster submodule.

ClusterConfigYes

The configuration information of the cluster in a module.

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

Databoolean

Indicates whether the update was successful. Valid values:

  • true
  • false
true
RequestIdstring

The ID of the request. It is used to locate logs and troubleshoot problems.

0000-ABCD-E****
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
ErrorCodestring

The error code.

101011005
ErrorMessagestring

The error message.

Invalid.Cluster.ClusterNotFound
HttpStatusCodeinteger

The HTTP status code.

200

Examples

Sample success responses

JSONformat

{
  "Data": true,
  "RequestId": "0000-ABCD-E****",
  "Success": true,
  "ErrorCode": 101011005,
  "ErrorMessage": "Invalid.Cluster.ClusterNotFound",
  "HttpStatusCode": 200
}

Error codes

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