How to update lookup field when using the api?

How to update lookup field when using the api?


I'm trying to upload data using rest/json api and having trouble getting linking between forms with a lookup field.   It is my understanding that I need to have the ID of the parent record to put into the lookup field.  Can someone please elaborate on this?   I think I may have misunderstood something.   Any help appreciated.

Thanks!