POST Links in REST API

Hi,

Just wondering how you can POST links in the REST API. For example, Items have a manditory link Item Group and Default Warehouse (source). How can I refer to an item group in the body of my POST request?

POST body:

data={"item_code": "testitem", "item_name": "Test Item", "item_group": "???", "default_warehouse": "??"}

All help is appreciated!

Thank you!

Item Group and Warehouse are referred by their name property, which is the primary key (and human readable)

Edit: Try a GET to see the format.