Unable to switch organization


I have to change timezone for all organizations.
To do this, I am first trying to fetch all organizations

curl http://admin:admin@localhost:8912/api/orgs

and then loop over each organization id to change the preference of timezone.
Now, the problem is, I am unable to switch context(required to change the organization):

curl -X POST “http://admin:admin@localhost:8912/api/users/0/using/2
{“message”:“Not a valid organization”}

Please help!

Kavya K

Does user 0 belong to organization 2? Test it with GET /api/user/orgs