Newly created environment not showing up on postma

2019-08-26 03:46发布

I'm using postman native app but creating the environment using the postman API to avoid a manual step. I was successfully able to create the environment using the following:

POST - https://api.getpostman.com/environments

{
    "environment": {
        "name": "My New Environment",
        "values": [
            {"key": "variable_name_1", "value": "my_value"},
            {"key": "variable_name_2", "value": "my_other_value"}
        ]
    }
}

But, the newly created environment is not being displayed in the native app's environment's dropdown (even after the sync is complete).

Did anyone experience a similar issue and any pointers on how to resolve it ?

Thanks

标签: postman
1条回答
够拽才男人
2楼-- · 2019-08-26 04:41

OK, I tried adding the environment using the same call and I noticed one thing - the environment is created in ANOTHER workspace than the one I was sending the request from. Looks like a bug in Postman. Try double checking into ALL of your workspaces , clicking on "Sync" button again.

查看更多
登录 后发表回答