Say I've got a few accounts, let's call the first "HQ", then I add a few account relationships. How do I then select the account "HQ", and expand the related accounts?
The query would look something like this:
accounts(HQ Account Id)?$select=name&$expand=account_accounts($select=name)
It's the "account_accounts" bit I can't find out the correct relationship name.
Is there somewhere to find out all the available relationships and the names that can be used for the queries?
Found it! It's account_parent_account