How can I update the contract line and contract project linkage?

You can't update contract details in Oracle Fusion Grants Management. Use Oracle Fusion Enterprise Contracts to update contract details.