Creates a parameter.
Operation description
This operation requires DataWorks Professional Edition or a later edition.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1Request parameters
Parameter | Type | Required | Description | Example |
Name | string | Yes | The parameter name. It must be unique within the workspace, be prefixed with | workspace.para |
| Properties | array<object> | Yes | The value configurations for the parameter. A configuration for the production environment is required. If you provide duplicate configurations for an environment, only the first one is used. | |
object | No | |||
EnvType | string | No | The environment.
| Prod |
Value | string | No | The value of the parameter. The value can contain Chinese characters, letters, digits, and the following special characters: /, :, ., [, ], ,, \, ', ", _, =, ?, space, carriage return, line feed, +, -, *, %, &, @, !, $, #, {, and }. | value123 |
Type | string | Yes | The type of the parameter.
| PlainConstant |
ProjectId | integer | Yes | The workspace ID. This parameter is required when | 1000 |
Owner | string | Yes | The account ID of the owner. | 123456789 |
Description | string | No | The description of the parameter. | This is a test parameter |
Scope | string | No | The scope of the parameter. The default value is | Project |
Response elements
Element | Type | Description | Example |
object | Response schema | ||
Id | integer | The parameter ID. | 123 |
RequestId | string | The request ID. | 6A6CBE87-9F91-1323-B680-E7A7065XXXXX |
Examples
Success response
JSON format
{
"Id": 123,
"RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.