Multiplicity
Each attribute and relationship parameter in an API class has a designated multiplicity that specifies its usage in the JSON documents sent with HTTP requests and responses. Multiplicity defines the number of instances of the attribute or relationship that can be assigned to the parameter.
The following table lists the multiplicity designators. In the designators, two dots (..) represents a range of values and the asterisk (*) represents an indeterminate number of values. When a parameter takes more than one value, you can treat it as an array. Parameters that have a multiplicity of 0..1 or 0..* are optional.
Multiplicity designators
Notation |
Required or |
Description |
---|---|---|
1 |
Required |
Parameter takes one value. |
1 .. * |
Required |
Parameter takes one or more values. |
0 .. 1 |
Optional |
Parameter takes zero or one value. |
0 .. * |
Optional |
Parameter takes zero or more values. |
Comments
Log in or register to comment.