cancel
Showing results for 
Search instead for 
Did you mean: 

API to change account

API to change account

Markv
New Contributor
I'm having a problem changing to another account in Postmen.

When I use swagger:
* Authentication - login : I receive a token
* Account - account/:switch : I receive a token for the external account
* User - users/external: I reveice all the users from the external account, I have api rights

When I try the same with Postmen (import the curl from swagger):
* Authentication - login : I receive a token
* Account - account/:switch : 404 not found

Anybody some tips for this?

Regards, Mark
1 REPLY 1

TimS2
Extreme Employee
Under the Params > Path Variables 'switch' should be in the key and nothing in the value (Postman will have a light grey 'Value' in the cell).  If anything is in the cell, even a space, the :switch in the url will be replaced with that value. 

You can look in the console and see the call. Make sure it looks like "POST https://api.extremecloudiq.com/account/:switch?id={XXX}" 
If the :switch is missing, I would delete the end of the url and retype ':switch?id={XXX}'
GTM-P2G8KFN