Create Attribute
POST {{apiPath}}/environments/{{envID}}/schemas/{{schemaID}}/attributes
This PingOne collection contains only the requests without documentation. For the official PingOne Platform API documentation, see Create Attribute.
Request Body
{"name"=>"officeStuff{{$timestamp}}", "displayName"=>"An optional property that specifies the display name of the attribute.", "description"=>"An optional property that specifies the description of the new attribute.", "schemaType"=>"CUSTOM", "type"=>"STRING", "unique"=>false, "enabled"=>false, "multiValued"=>false, "regexValidation"=>{"pattern"=>"xs|XS|s|S|m|M|l|L|xl|XL|xxl|XXL", "requirements"=>"Must be a T-shirt size from XS to XXL", "valuesPatternShouldMatch"=>["xs", "XXL"], "valuesPatternShouldNotMatch"=>["xL", "x"]}, "#enumeratedValues"=>[{"value"=>"CUPS", "archived"=>true, "description"=>"Cups, Class: Clergy, Faculty: Emotions and love"}, {"value"=>"PENTACLES", "archived"=>true, "description"=>"Pentacles, Class: Merchants, Faculty: Material body or possessions"}, {"value"=>"SWORDS", "archived"=>true, "description"=>"Swords, Class: Nobility and military, Faculty: Reason"}, {"value"=>"WANDS", "archived"=>true, "description"=>"Wands, Class: Artisans, Faculty: Creativity and will"}]}