Update line items properties under order

That guide doesn’t say anything about adding or editing the Line Item Properties, which seem to be customAttributes of the line item. Do you have any resources that show how to add a product with customAttributes?