Create a component resource property definition

Request

POST https://{hostname}:{port}
    /cli/component/addResPropDef
Accept: {contentType}
Table 1. Header parameters
Parameter Type Required Description
Accept
  • application/json
  • application/yaml
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. Follows java.util.regex.Pattern 
  (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: addComponentResourcePropDef.