UpdateParameter

Updated at:

Updates a parameter. This is an incremental update that modifies only the specified fields.

Operation description

DataWorks Professional Edition or higher is required.

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 syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

Id

integer

Yes

The ID of the parameter to be updated. You can obtain the ID from the PagingInfo.Parameters[].Id field in the response of the ListParameters operation.

12345

Properties

array<object>

No

The property configurations of the parameter values to be updated. You can omit this parameter if you only update the owner or description. If you specify Prod, the value cannot be empty. If the same environment is specified multiple times, the last item is used.

object

No

EnvType

string

No

The project environment.

  • Prod: Production.

  • Dev: Development.

Valid values:

  • Prod :

    Production.

  • Dev :

    Development.

Prod

Value

string

No

The parameter value.

value123

Owner

string

No

The account ID of the owner.

123456789

Description

string

No

The description.

This is a test parameter

Response elements

Element

Type

Description

Example

object

Schema of Response

Version

integer

The version number of the parameter generated after the update. You can query this version by calling the ListParameterVersions operation.

2

RequestId

string

The request ID.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Success response

JSON format

{
  "Version": 2,
  "RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.