Set a version property for a component

Component version properties are available to each version of the component.

Request

PUT https://{hostname}:{port}
    /cli/component/versionPropDefs
Accept: application/json
Table 1. Header parameters
Parameter Type Required Description
Accept application/json true
This command takes a JSON request string or file. Use the following template for the request:
{
  "allowedValues": "Comma separated list of allowed values 
  in SELECT or MULTI_SELECT properties (Optional)",
  "component": "Name or ID of the component",
  "description": "Description for the property (Optional)",
  "label": "Label of the property (Optional)",
  "name": "Name of the property to set",
  "pattern": "A regular expression that specifies valid 
  values for the property (Optional)",
  "required": "Whether the property is required (Optional, 
  Boolean)",
  "type": "the type of property definition; valid values 
  are TEXT (the default), , TEXTAREA, CHECKBOX, SELECT, 
  MULTI_SELECT, DATETIME, and SECURE)",
  "value": "Default value of the property definition 
  (Optional)"
}

Related CLI command: setComponentVersionPropDef.