Updating properties of line items while adding to cart

can i update line item properties using rest api while adding to cart ?

You can leverage the Shopify Storefront API to achieve this functionality. However, Shopify primarily supports the GraphQL API rather than the REST API.