Set parent
Sets the affiliate’s parent in your multi-level (MLM) structure. Identify the parent either by affiliate_id (the parent’s id) or by via (the parent’s numeric id), but not both. Sending both returns 400 You can only use one affiliate_id/via attribute at once, and sending neither returns 400 Missing mandatory parameter(s).
The parent must be a regular, non-deleted affiliate registered in your account, other than the affiliate itself and not one of its descendants. Anything else, including an affiliate_id or via that matches no affiliate, returns 400 Parent affiliate not valid, and the current parent stays as it is. Affiliate prospects and external-network affiliates return 403. Team members’ API keys need the Manage programs permission.