Hi @amer2737 ,
“Bad request” - there are multiple reasons for this. My first guess would be that your access token is incorrect or you do not have the access scope for write_inventory.
At least the “bad request” does not says anything whether your graphql statement is correct or not.
Regards
Thomas