Domain Access module: Adding nodes programmatically to subdomains
Since I didnt find a way to do this with api I solved this by editing the table where domain access keeps the info about which node belongs to which domain.