addComponentResourcePropDef

Create a component resource property definition

Format

udclient [global-args...] [global-flags...]
  addComponentResourcePropDef [JSON file]

Parameters

None.

Template

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 REST command: Create a component resource property definition.