400 - Too Few Elements
Tip
The error code too_few_elements
will be returned if you do not provide enough values in a collection when creating or updating an object.
This error code would be returned, for example, if you attempt to create a new shipment
but do not provide a sufficient number of addresses
.
Note
A shipment
requires a minimum of 2 addresses
- an origin
and a destination
.
This error code may apply in other circumstances as well. For example:
- an insufficient number of
contents
in ashipment
(at least 1 is required) - an insufficient number of
addresses
in ashipment
(at least 2 are required) - an insufficient number of
shipments
when attempting to allocate multipleshipments
(at least oneshipment
reference is required)