'upload_weights' Method
The 'upload_weights' method is used to upload weights for the catalog items. Weight is an optional parameter used for items sorting during cache loading. Items with greater weight are the first to be loaded to the cache. If the weight label of a particular item already exists, the 'upload_weights' operation overwrites the previous weight value with the new one.
The 'upload_weights' operation must be performed after the items have been already uploaded to the catalog. If the catalog items are updated, their weights are removed in the process, because the weights are associated with the old items.