Arguments
paramId: String ID uniquely identifying one parameter.
role: Role of the parameter. Values are INPUT,
OUTPUT, and UNKNOWN.
dataType: Type of data to be added to the parameter, if it does not
contain string data. Values are INTEGER, REAL, and
BOOLEAN.
structure: Structure of the data in the parameter. Values are
SCALAR and ARRAY.
priority: Initial rough weight, if weight is not defined, with a
priority of 5 corresponding to a weight of 1 and a priority of 1 corresponding to weight
of 5. priority must be an integer between 0 and 5, with a value of 0
corresponding to a Must-Have parameter with the same weight as a priority 1 parameter.
The value of priority is not used for weighting if the
weight attribute has been set.
weight: Parameter weight. This is used in scoring calculations,
providing more specificity than priority. Weight must be a number
between 1 and 5, or have a value of -1. A value of -1 represents that the weight is not
set and that the weighting should default to use a value derived from the priority.
dimensions: Dimensions of the parameter if it is of type
ARRAY.
unit: Unit of the parameter, such as miles or
kg.
notes: Additional notes on the parameter.
displayName: Short name to be displayed for the parameter.
name will be used if displayName is not
defined.
name: Full name of the parameter.
parentId: ID of the group containing the parameter.
Return Value
Returns a dictionary-like object representing the modified parameter.
All arguments other than paramId are optional. Arguments provided will
overwrite previously defined values, while parameter attributes for which no corresponding
argument is provided will retain their previous values.