400 - Too Many Elements
Tip
The too_many_elements
error code will be returned if you attempt to include more elements in a collection than the maximum or limit for that collection.
This error code will be returned, for example, if you attempt to create a shipment
including more than 10
tags, as the maximum number of tags permitted is 10
:
{
"tags": [
"tag00",
"tag01",
"tag02",
"tag03",
"tag04",
"tag05",
"tag06",
"tag07",
"tag08",
"tag09",
"tag10",
"tag11"
]
}
Note
There are many collection properties that have a maximum number of permitted entries, including:
tags
metadata
contents
shipments
(e.g. when attempting to allocate multipleshipments
)attached_invoice_references
attached_certificate_references
attached_licence_references
You should check the data contracts and specification for each API endpoint you are integrating with to ensure that maximums are accounted for.