I have successfully downloaded and pushed an asset using REST API; I have my installed package enabled for 2 BU's now;
How do I specify a BU/MID in my request?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI have successfully downloaded and pushed an asset using REST API; I have my installed package enabled for 2 BU's now;
How do I specify a BU/MID in my request?
It is not in your Asset API request that you specify it. When your integration authenticates, it does so on behalf of a user with an MID. If you want to push to a different MID you need to re-auth under the other account. If you need to push to the two at the same time, you will need to maintain two different sessions.
I believe you will need to authenticate into the desired Business Unit to generate an access token before processing your request. You'll just need to specify the account_id when making that auth token call.